File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
tests/MongoDB.Driver.Tests/Communication/Security Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -97,9 +97,11 @@ public void AwsSdk_should_support_all_required_handlers()
97
97
exception = Record . Exception ( ( ) => RunTestCase ( ) ) ;
98
98
if ( IsWithAwsProfileOnMachine ( ) )
99
99
{
100
- // current machine contains configured aws profile
100
+ // current machine contains configured aws profile, which may include:
101
+ // 1. BasicAWSCredentials (aws_access_key_id and aws_secret_access_key)
102
+ // 2. SessionAWSCredentials (aws_access_key_id, aws_secret_access_key, aws_session_token)
101
103
exception . Should ( ) . BeNull ( ) ;
102
- credentials . Should ( ) . BeOfType < SessionAWSCredentials > ( ) ;
104
+ credentials . Should ( ) . Match ( x => x is BasicAWSCredentials || x is SessionAWSCredentials ) ;
103
105
}
104
106
else
105
107
{
You can’t perform that action at this time.
0 commit comments