Skip to content

Commit a595dbd

Browse files
committed
test: check provider count
1 parent 540aef3 commit a595dbd

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/integration/client-side-encryption/client_side_encryption.prose.26.custom_aws_credential_providers.test.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,13 +60,15 @@ describe('25. Custom AWS Credential Providers', metadata, () => {
6060

6161
context('Case 2: Explicit encryption with custom credential provider', metadata, function () {
6262
let clientEncryption;
63+
let providerCount = 0;
6364

6465
beforeEach(function () {
6566
const options = {
6667
keyVaultNamespace: 'keyvault.datakeys',
6768
kmsProviders: { aws: {} },
6869
credentialProviders: {
6970
aws: async () => {
71+
providerCount++;
7072
return {
7173
accessKeyId: process.env.FLE_AWS_KEY,
7274
secretAccessKey: process.env.FLE_AWS_SECRET
@@ -81,6 +83,7 @@ describe('25. Custom AWS Credential Providers', metadata, () => {
8183
it('is successful', metadata, async function () {
8284
const dk = await clientEncryption.createDataKey('aws', { masterKey });
8385
expect(dk).to.be.instanceOf(Binary);
86+
expect(providerCount).to.be.greaterThan(0);
8487
});
8588
});
8689

0 commit comments

Comments
 (0)