public void Test_Sshd() { bool testResult = true; try { if (Directory.Exists("TestHomeDir")) { Directory.Delete("TestHomeDir", true); } Sshd.ConfigureSshd(@"c:\openshift\cygwin\installation", "testUser", "Administrator", "TestHomeDir", string.Empty); Sshd.AddKey(@"c:\openshift\cygwin\installation", "testUser", "testkey"); Sshd.RemoveKey(@"c:\openshift\cygwin\installation", "testUser", "testkey"); Sshd.RemoveUser(@"c:\openshift\cygwin\installation", "testUser", "Administrator", "TestHomeDir", string.Empty); } catch { testResult = false; } Assert.IsTrue(testResult); }
public string RemoveSshdUser() { Sshd.RemoveUser(NodeConfig.Values["SSHD_BASE_DIR"], container.Uuid, Environment.UserName, container.ContainerDir, NodeConfig.Values["GEAR_SHELL"]); return(string.Empty); }