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