Skip to content

Commit 69176cb

Browse files
committed
test: cleanup
1 parent dab55e3 commit 69176cb

4 files changed

Lines changed: 7 additions & 53 deletions

File tree

.evergreen/config.in.yml

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -557,21 +557,6 @@ functions:
557557
args:
558558
- .evergreen/prepare-mongodb-aws-ecs-auth.sh
559559

560-
"run aws custom credential providers test":
561-
- command: subprocess.exec
562-
type: test
563-
params:
564-
include_expansions_in_env:
565-
- MONGODB_URI
566-
- DRIVERS_TOOLS
567-
- MONGODB_AWS_SDK
568-
env:
569-
AWS_CREDENTIAL_TYPE: env-creds
570-
working_dir: "src"
571-
binary: bash
572-
args:
573-
- .evergreen/run-aws-custom-credential-providers-test.sh
574-
575560
"run custom csfle tests":
576561
- command: subprocess.exec
577562
type: test

.evergreen/config.yml

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -493,20 +493,6 @@ functions:
493493
binary: bash
494494
args:
495495
- .evergreen/prepare-mongodb-aws-ecs-auth.sh
496-
run aws custom credential providers test:
497-
- command: subprocess.exec
498-
type: test
499-
params:
500-
include_expansions_in_env:
501-
- MONGODB_URI
502-
- DRIVERS_TOOLS
503-
- MONGODB_AWS_SDK
504-
env:
505-
AWS_CREDENTIAL_TYPE: env-creds
506-
working_dir: src
507-
binary: bash
508-
args:
509-
- .evergreen/run-aws-custom-credential-providers-test.sh
510496
run custom csfle tests:
511497
- command: subprocess.exec
512498
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)