Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
test: check provider count
  • Loading branch information
durran committed Mar 13, 2025
commit 2fb76c84705d81797587ebe947d19f3b0ad751ef
Original file line number Diff line number Diff line change
Expand Up @@ -60,13 +60,15 @@ describe('25. Custom AWS Credential Providers', metadata, () => {

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

beforeEach(function () {
const options = {
keyVaultNamespace: 'keyvault.datakeys',
kmsProviders: { aws: {} },
credentialProviders: {
aws: async () => {
providerCount++;
return {
accessKeyId: process.env.FLE_AWS_KEY,
secretAccessKey: process.env.FLE_AWS_SECRET
Expand All @@ -81,6 +83,7 @@ describe('25. Custom AWS Credential Providers', metadata, () => {
it('is successful', metadata, async function () {
const dk = await clientEncryption.createDataKey('aws', { masterKey });
expect(dk).to.be.instanceOf(Binary);
expect(providerCount).to.be.greaterThan(0);
});
});

Expand Down