public void TestEncryptedSecretKey() { var test = new DeployTemplateAction(); test.EncryptKeys = true; test.SecretKeyCleartext = "foo"; Assert.AreNotEqual(test.SecretKeyCleartext, test.SecretKey); }
public void Setup() { action = new DeployTemplateAction(); action.AccessKey = System.IO.File.ReadAllText(@"c:\temp\accesskey.txt"); action.SecretKey = System.IO.File.ReadAllText(@"C:\temp\secretkey.txt"); action.InitClient(); }
public void TestClientCreationWithValidCredentials() { var test = new DeployTemplateAction(); test.AccessKey = System.IO.File.ReadAllText(@"c:\temp\accesskey.txt"); test.SecretKey = System.IO.File.ReadAllText(@"C:\temp\secretkey.txt"); test.InitClient(); Assert.IsNotNull(test.client); }
public void TestClientCreationWithInvalidCredentials() { var test = new DeployTemplateAction(); test.AccessKey = ""; test.SecretKey = ""; test.InitClient(); Assert.IsNull(test.client); }
public void TestUnencryptedAccessKey() { var test = new DeployTemplateAction(); test.EncryptKeys = false; test.AccessKeyCleartext = "foo"; Assert.AreEqual(test.AccessKeyCleartext, test.AccessKey); }