()
| 33 | it(class="st">'authenticates with a user provided credentials provider', async function () { |
| 34 | const credentialProvider = AWSSDKCredentialProvider.awsSDK; |
| 35 | const provider = async () => { |
| 36 | providerCount++; |
| 37 | return await credentialProvider.fromNodeProviderChain().apply(); |
| 38 | }; |
| 39 | client = this.configuration.newClient(process.env.MONGODB_URI, { |
| 40 | authMechanismProperties: { |
| 41 | AWS_CREDENTIAL_PROVIDER: provider |