Skip to content

Commit 57b3124

Browse files
Passing
1 parent 90e61db commit 57b3124

File tree

6 files changed

+14
-43
lines changed

6 files changed

+14
-43
lines changed

.evergreen/prepare-crypt-shared-lib.sh

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

.evergreen/setup-fle.sh

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,9 @@ bash ${DRIVERS_TOOLS}/.evergreen/csfle/setup-secrets.sh
44
source secrets-export.sh
55

66
if [ -z "${RUN_WITH_MONGOCRYPTD}" ]; then
7-
# Set up crypt shared lib if we don't want to use mongocryptd
8-
bash .evergreen/prepare-crypt-shared-lib.sh
9-
source crypt_shared.sh
10-
echo "CRYPT_SHARED_LIB_PATH: $CRYPT_SHARED_LIB_PATH"
7+
echo "crypt shared: $CRYPT_SHARED_LIB_PATH"
118
else
9+
rm $CRYPT_SHARED_LIB_PATH
10+
unset CRYPT_SHARED_LIB_PATH
1211
echo "CRYPT_SHARED_LIB_PATH not set; using mongocryptd"
1312
fi

test/integration/client-side-encryption/client_side_encryption.prose.test.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1146,7 +1146,8 @@ describe('Client Side Encryption Prose Tests', metadata, function () {
11461146
mongocryptdSpawnArgs: [
11471147
'--pidfilepath=bypass-spawning-mongocryptd.pid',
11481148
'--port=27021'
1149-
]
1149+
],
1150+
cryptSharedLibSearchPaths: []
11501151
}
11511152
}
11521153
}

test/integration/client-side-encryption/driver.test.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -718,6 +718,7 @@ describe('CSOT', function () {
718718
keyVaultClient,
719719
keyVaultNamespace: 'keyvault.datakeys',
720720
kmsProviders: getLocalKmsProvider(),
721+
extraOptions: getEncryptExtraOptions(),
721722
schemaMap: {
722723
'test.test': {
723724
bsonType: 'object',
@@ -771,14 +772,15 @@ describe('CSOT', function () {
771772
autoEncryption: {
772773
keyVaultClient,
773774
keyVaultNamespace: 'admin.datakeys',
774-
kmsProviders: getLocalKmsProvider()
775+
kmsProviders: getLocalKmsProvider(),
776+
extraOptions: getEncryptExtraOptions()
775777
}
776778
}
777779
);
778780
});
779781

780782
afterEach(async function () {
781-
await encryptedClient.close();
783+
await encryptedClient?.close();
782784
});
783785

784786
it('the command succeeds', metadata, async function () {

test/integration/client-side-operations-timeout/client_side_operations_timeout.unit.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,8 @@ describe('CSOT spec unit tests', function () {
200200
mongocryptdSpawnArgs: [
201201
`--pidfilepath=${new ObjectId().toHexString()}.pid`,
202202
'--port=27020'
203-
]
203+
],
204+
cryptSharedLibSearchPaths: []
204205
},
205206
keyVaultNamespace: 'admin.datakeys',
206207
kmsProviders: {

test/integration/crud/crud.prose.test.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import {
1313
MongoInvalidArgumentError,
1414
MongoServerError
1515
} from '../../mongodb';
16+
import { getEncryptExtraOptions } from '../../tools/utils';
1617
import { filterForCommands } from '../shared';
1718

1819
describe('CRUD Prose Spec Tests', () => {
@@ -1023,7 +1024,8 @@ describe('CRUD Prose Spec Tests', () => {
10231024
accessKeyId: 'foo',
10241025
secretAccessKey: 'bar'
10251026
}
1026-
}
1027+
},
1028+
extraOptions: getEncryptExtraOptions()
10271029
}
10281030
}
10291031
);

0 commit comments

Comments
 (0)