Пример #1
0
 public void TestEncryptedSecretKey()
 {
     var test = new DeployTemplateAction();
     test.EncryptKeys = true;
     test.SecretKeyCleartext = "foo";
     Assert.AreNotEqual(test.SecretKeyCleartext, test.SecretKey);
 }
Пример #2
0
 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();
 }
Пример #3
0
 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);
 }
Пример #4
0
 public void TestClientCreationWithInvalidCredentials()
 {
     var test = new DeployTemplateAction();
     test.AccessKey = "";
     test.SecretKey = "";
     test.InitClient();
     Assert.IsNull(test.client);
 }
Пример #5
0
 public void TestUnencryptedAccessKey()
 {
     var test = new DeployTemplateAction();
     test.EncryptKeys = false;
     test.AccessKeyCleartext = "foo";
     Assert.AreEqual(test.AccessKeyCleartext, test.AccessKey);
 }