Skip to content

Commit 2cbada2

Browse files
committed
test: cleanup
1 parent 8ae05ea commit 2cbada2

File tree

4 files changed

+7
-53
lines changed

4 files changed

+7
-53
lines changed

.evergreen/config.in.yml

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -548,21 +548,6 @@ functions:
548548
args:
549549
- .evergreen/prepare-mongodb-aws-ecs-auth.sh
550550

551-
"run aws custom credential providers test":
552-
- command: subprocess.exec
553-
type: test
554-
params:
555-
include_expansions_in_env:
556-
- MONGODB_URI
557-
- DRIVERS_TOOLS
558-
- MONGODB_AWS_SDK
559-
env:
560-
AWS_CREDENTIAL_TYPE: env-creds
561-
working_dir: "src"
562-
binary: bash
563-
args:
564-
- .evergreen/run-aws-custom-credential-providers-test.sh
565-
566551
"run custom csfle tests":
567552
- command: subprocess.exec
568553
type: test

.evergreen/config.yml

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -485,20 +485,6 @@ functions:
485485
binary: bash
486486
args:
487487
- .evergreen/prepare-mongodb-aws-ecs-auth.sh
488-
run aws custom credential providers test:
489-
- command: subprocess.exec
490-
type: test
491-
params:
492-
include_expansions_in_env:
493-
- MONGODB_URI
494-
- DRIVERS_TOOLS
495-
- MONGODB_AWS_SDK
496-
env:
497-
AWS_CREDENTIAL_TYPE: env-creds
498-
working_dir: src
499-
binary: bash
500-
args:
501-
- .evergreen/run-aws-custom-credential-providers-test.sh
502488
run custom csfle tests:
503489
- command: subprocess.exec
504490
type: test

.evergreen/run-aws-custom-credential-providers-test.sh

Lines changed: 0 additions & 20 deletions
This file was deleted.

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

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import { expect } from 'chai';
22

33
/* eslint-disable @typescript-eslint/no-restricted-imports */
44
import { ClientEncryption } from '../../../src/client-side-encryption/client_encryption';
5+
import { getCSFLEKMSProviders } from '../../csfle-kms-providers';
56
import { AWSTemporaryCredentialProvider, Binary } from '../../mongodb';
67
import { getEncryptExtraOptions } from '../../tools/utils';
78

@@ -59,11 +60,13 @@ describe('25. Custom AWS Credential Providers', metadata, () => {
5960
let clientEncryption;
6061

6162
beforeEach(function () {
62-
clientEncryption = new ClientEncryption(keyVaultClient, {
63+
const options = {
6364
keyVaultNamespace: 'keyvault.datakeys',
64-
kmsProviders: { aws: {} },
65-
credentialProviders: { aws: credentialProvider.fromNodeProviderChain() }
66-
});
65+
kmsProviders: getCSFLEKMSProviders(),
66+
credentialProviders: { aws: credentialProvider.fromNodeProviderChain() },
67+
extraOptions: getEncryptExtraOptions()
68+
};
69+
clientEncryption = new ClientEncryption(keyVaultClient, options);
6770
});
6871

6972
it('is successful', async function () {

0 commit comments

Comments
 (0)