Exemplo n.º 1
0
 public void ReadBasicProfileConfig()
 {
     using (var tester = new SharedCredentialsFileTestFixture(null, BasicProfileConfigText))
     {
         tester.ReadAndAssertProfile("basic_profile", BasicProfileOptions, RegionEndpoint.CACentral1, UniqueKey);
     }
 }
Exemplo n.º 2
0
 public void ReadAssumeRoleMfaProfile()
 {
     using (var tester = new SharedCredentialsFileTestFixture(AssumeRoleMfaProfileText))
     {
         tester.ReadAndAssertProfile("assume_role_mfa_profile", AssumeRoleMfaProfileOptions);
     }
 }
Exemplo n.º 3
0
 public void ReadSessionProfile()
 {
     using (var tester = new SharedCredentialsFileTestFixture(SessionProfileText))
     {
         tester.ReadAndAssertProfile("session_profile", SessionProfileOptions);
     }
 }
Exemplo n.º 4
0
 public void ReadBasicProfileCredentialsTakesPrecedence()
 {
     using (var tester = new SharedCredentialsFileTestFixture(
                BasicProfileTextCredentialsPrecedence, BasicProfileTextConfigPrecedence))
     {
         tester.ReadAndAssertProfile("basic_profile", BasicProfilePrecedenceOptions);
     }
 }
Exemplo n.º 5
0
 public void ReadBasicProfileSplit()
 {
     using (var tester = new SharedCredentialsFileTestFixture(
                BasicProfileTextCredentialsPartial, BasicProfileTextConfigPartial))
     {
         tester.ReadAndAssertProfile("basic_profile", BasicProfileOptions);
     }
 }
Exemplo n.º 6
0
 public void UpdateProfileWithProperties()
 {
     using (var tester = new SharedCredentialsFileTestFixture(UpdatedProfileWithPropertiesTextBefore))
     {
         tester.ReadAndAssertProfile("basic_profile", UpdatedProfileWithPropertiesOptions, UpdatedProfileWithPropertiesBefore);
         tester.AssertWriteProfile("basic_profile", UpdatedProfileWithPropertiesOptions, UpdatedProfileWithPropertiesAfter, UpdatedProfileWithPropertiesTextAfter);
     }
 }
Exemplo n.º 7
0
 public void UpdateProfile()
 {
     using (var tester = new SharedCredentialsFileTestFixture(SessionProfileText))
     {
         tester.ReadAndAssertProfile("session_profile", SessionProfileOptions);
         tester.AssertWriteProfile("session_profile", SessionProfileOptionsUpdated, SessionProfileTextUpdated);
     }
 }
Exemplo n.º 8
0
        public void ReadBasicProfileAllConfigExtraSpacesAndTabInName()
        {
            var basicProfileInConfigWithWhitespace = BasicProfileConfigText.Replace("profile basic_profile", "profile \t basic_profile");

            using (var tester = new SharedCredentialsFileTestFixture(null, basicProfileInConfigWithWhitespace))
            {
                tester.ReadAndAssertProfile("basic_profile", BasicProfileOptions, RegionEndpoint.CACentral1, UniqueKey);
            }
        }