public override void SetUp() { base.SetUp(); _fayeClient = null; _websocket = null; _connection = null; _fayeServerProcess = new ThinServerProcess(thinPort: 8132, workingDirectory: WorkingDirectory); }
public override void SetUp() { base.SetUp(); _websocket = null; _connection = null; _client = null; _fayeServerProcess = new ThinServerProcess(thinPort: THIN_SERVER_PORT, workingDirectory: WorkingDirectory); _socatInterceptor = null; }
public override void SetUp() { base.SetUp(); _trustedCerts = new List <X509Certificate>(); _socket = new WebSocketCustomSslTrust(uri: URI, trustedCertChain: _trustedCerts); _websocketProcess = new ThinServerProcess(thinPort: 8132, workingDirectory: WorkingDirectory); _messageReceivedTask = new TaskCompletionSource <string>(); }
public void No_ssl_start() { // arrange var thin = new ThinServerProcess(thinPort: 1224, workingDirectory: "."); _tcpListener = new TcpListener(IPAddress.Any, 1224); _tcpListener.Start(); // act thin.StartThinServer(); thin.RubyProc.WaitForExit(); // assert CommandExecuted .Should() .Be(@".\thin start -R config.ru -p 1224 -V"); }
public void Shutdown() { // arrange var thin = new ThinServerProcess(thinPort: 1224, workingDirectory: "."); _tcpListener = new TcpListener(IPAddress.Any, 1224); _tcpListener.Start(); // act thin.StartThinServer(); thin.GracefulShutdown(); // assert // because of the quick exit, our shutdown file should already be gone var exists = File.Exists(thin.ShutdownTriggerPath); exists .Should() .BeFalse(); }
public void Ssl_start() { // arrange var thin = new ThinServerProcess(thinPort: 1224, workingDirectory: ".") { ThinSslCertFile = "certfile", ThinSslKeyFile = "keyfile" }; _tcpListener = new TcpListener(IPAddress.Any, 1224); _tcpListener.Start(); // act thin.StartThinServer(); thin.RubyProc.WaitForExit(); // assert CommandExecuted .Should() .Be(@".\thin start -R config.ru -p 1224 -V --ssl --ssl-key-file keyfile --ssl-cert-file certfile"); }