Skip to content

Commit 62930f8

Browse files
committed
chore: comments
1 parent 1d0797a commit 62930f8

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

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

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,20 @@ describe('26. Custom AWS Credential Providers', metadata, () => {
103103
}
104104
);
105105

106+
// Ensure a valid AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY are present in the environment.
107+
// Create a MongoClient named setupClient.
108+
// Create a ClientEncryption object with the following options:
109+
// class ClientEncryptionOpts {
110+
// keyVaultClient: <setupClient>,
111+
// keyVaultNamespace: "keyvault.datakeys",
112+
// kmsProviders: { "aws": {} },
113+
// credentialProviders: { "aws": <object/function that returns valid credentials from the secrets manager> }
114+
// }
115+
// Use the client encryption to create a datakey using the "aws" KMS provider. This should successfully load
116+
// and use the AWS credentials that were provided by the secrets manager for the remote provider. Assert the
117+
// datakey was created and that the custom credential provider was called at least once.
106118
context(
107-
'ClientEncryption with credentialProviders and valid environment variables',
119+
'Case 4: ClientEncryption with credentialProviders and valid environment variables',
108120
metadata,
109121
function () {
110122
let clientEncryption;

0 commit comments

Comments
 (0)