コード例 #1
0
 public void ReadBasicProfileConfig()
 {
     using (var tester = new SharedCredentialsFileTestFixture(null, BasicProfileConfigText))
     {
         tester.ReadAndAssertProfile("basic_profile", BasicProfileOptions, RegionEndpoint.CACentral1, UniqueKey);
     }
 }
コード例 #2
0
 public void ReadAssumeRoleMfaProfile()
 {
     using (var tester = new SharedCredentialsFileTestFixture(AssumeRoleMfaProfileText))
     {
         tester.ReadAndAssertProfile("assume_role_mfa_profile", AssumeRoleMfaProfileOptions);
     }
 }
コード例 #3
0
 public void ReadSessionProfile()
 {
     using (var tester = new SharedCredentialsFileTestFixture(SessionProfileText))
     {
         tester.ReadAndAssertProfile("session_profile", SessionProfileOptions);
     }
 }
コード例 #4
0
 public void ReadBasicProfileCredentialsTakesPrecedence()
 {
     using (var tester = new SharedCredentialsFileTestFixture(
                BasicProfileTextCredentialsPrecedence, BasicProfileTextConfigPrecedence))
     {
         tester.ReadAndAssertProfile("basic_profile", BasicProfilePrecedenceOptions);
     }
 }
コード例 #5
0
 public void ReadBasicProfileSplit()
 {
     using (var tester = new SharedCredentialsFileTestFixture(
                BasicProfileTextCredentialsPartial, BasicProfileTextConfigPartial))
     {
         tester.ReadAndAssertProfile("basic_profile", BasicProfileOptions);
     }
 }
コード例 #6
0
 public void UpdateProfileWithProperties()
 {
     using (var tester = new SharedCredentialsFileTestFixture(UpdatedProfileWithPropertiesTextBefore))
     {
         tester.ReadAndAssertProfile("basic_profile", UpdatedProfileWithPropertiesOptions, UpdatedProfileWithPropertiesBefore);
         tester.AssertWriteProfile("basic_profile", UpdatedProfileWithPropertiesOptions, UpdatedProfileWithPropertiesAfter, UpdatedProfileWithPropertiesTextAfter);
     }
 }
コード例 #7
0
 public void UpdateProfile()
 {
     using (var tester = new SharedCredentialsFileTestFixture(SessionProfileText))
     {
         tester.ReadAndAssertProfile("session_profile", SessionProfileOptions);
         tester.AssertWriteProfile("session_profile", SessionProfileOptionsUpdated, SessionProfileTextUpdated);
     }
 }
コード例 #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);
            }
        }