This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* General utilities to wait for ports and URL responses to be available. | |
* Especially useful when waiting for container services to be fully "up". | |
*/ | |
public class WaitFor { | |
private static final Logger logger = LoggerFactory.getLogger(WaitFor.class.getClass()); | |
public static void waitForPort(String hostname, int port, long timeoutMs) { | |
logger.info("Waiting for port " + port); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add-Type -AssemblyName "System.Security" | |
function ConvertTo-EncryptedString{ | |
[cmdletbinding()] | |
[OutputType([string])] | |
param( | |
[parameter(Mandatory=$true, ValueFromPipeline=$true)] | |
[ValidateNotNull()] | |
[string]$stringToEncrypt) | |
Process{ |