Skip to content

Commit 1922883

Browse files
test(NODE-4487, NODE-4390): sync key management tests && bump fle version in tests (#3341)
1 parent 6c69b7d commit 1922883

16 files changed

+30
-22
lines changed

.evergreen/config.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1701,7 +1701,7 @@ tasks:
17011701
- func: bootstrap kms servers
17021702
- func: run custom csfle tests
17031703
vars:
1704-
CSFLE_GIT_REF: c2712248e9f4909cdad723607ea5291d2eb48b91
1704+
CSFLE_GIT_REF: 41afd44ca04d246998969c53de4e0f22802b0c8a
17051705
- name: run-custom-csfle-tests-mongocryptd-master
17061706
tags:
17071707
- run-custom-dependency-tests
@@ -1732,7 +1732,7 @@ tasks:
17321732
- func: run custom csfle shared lib tests
17331733
vars:
17341734
VERSION: latest
1735-
CSFLE_GIT_REF: c2712248e9f4909cdad723607ea5291d2eb48b91
1735+
CSFLE_GIT_REF: 41afd44ca04d246998969c53de4e0f22802b0c8a
17361736
- name: run-custom-csfle-shared-lib-tests-master
17371737
tags:
17381738
- run-custom-dependency-tests

.evergreen/generate_evergreen_tasks.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -557,7 +557,7 @@ oneOffFuncAsTasks.push({
557557
{
558558
func: 'run custom csfle tests',
559559
vars: {
560-
CSFLE_GIT_REF: 'c2712248e9f4909cdad723607ea5291d2eb48b91'
560+
CSFLE_GIT_REF: '41afd44ca04d246998969c53de4e0f22802b0c8a'
561561
}
562562
}
563563
]
@@ -612,7 +612,7 @@ oneOffFuncAsTasks.push({
612612
func: 'run custom csfle shared lib tests',
613613
vars: {
614614
VERSION: 'latest',
615-
CSFLE_GIT_REF: 'c2712248e9f4909cdad723607ea5291d2eb48b91'
615+
CSFLE_GIT_REF: '41afd44ca04d246998969c53de4e0f22802b0c8a'
616616
}
617617
}
618618
]

.evergreen/run-bson-ext-test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ fi
2323
# run tests
2424
echo "Running $AUTH tests over $SSL, connecting to $MONGODB_URI"
2525

26-
npm install mongodb-client-encryption@">=2.0.0-beta.4"
26+
npm install mongodb-client-encryption@">=2.2.0-alpha.6"
2727
npm install bson-ext
2828

2929
export MONGODB_API_VERSION=${MONGODB_API_VERSION}

.evergreen/run-tests.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ else
5656
source "$DRIVERS_TOOLS"/.evergreen/csfle/set-temp-creds.sh
5757
fi
5858

59-
npm install mongodb-client-encryption@">=2.2.0-alpha.5"
59+
npm install mongodb-client-encryption@">=2.2.0-alpha.6"
6060
npm install @mongodb-js/zstd
6161
npm install snappy
6262

test/spec/client-side-encryption/tests/unified/addKeyAltName.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,9 @@
9898
},
9999
"keyAltName": "new_key_alt_name"
100100
},
101-
"expectResult": null
101+
"expectResult": {
102+
"$$unsetOrMatches": null
103+
}
102104
}
103105
],
104106
"expectEvents": [

test/spec/client-side-encryption/tests/unified/addKeyAltName.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ tests:
4848
# First 3 letters of local_key_id replaced with 'A' (value: "#alkeylocalkey").
4949
id: &non_existent_id { $binary: { base64: AAAjYWxrZXlsb2NhbGtleQ==, subType: "04" } }
5050
keyAltName: new_key_alt_name
51-
expectResult: null
51+
expectResult: { $$unsetOrMatches: null }
5252
expectEvents:
5353
- client: *client0
5454
events:

test/spec/client-side-encryption/tests/unified/createDataKey-kms_providers-invalid.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"description": "createDataKey-provider-invalid",
2+
"description": "createDataKey-kms_providers-invalid",
33
"schemaVersion": "1.8",
44
"runOnRequirements": [
55
{

test/spec/client-side-encryption/tests/unified/createDataKey-kms_providers-invalid.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
description: createDataKey-provider-invalid
1+
description: createDataKey-kms_providers-invalid
22

33
schemaVersion: "1.8"
44

test/spec/client-side-encryption/tests/unified/getKey.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,9 @@
133133
}
134134
}
135135
},
136-
"expectResult": null
136+
"expectResult": {
137+
"$$unsetOrMatches": null
138+
}
137139
}
138140
],
139141
"expectEvents": [

test/spec/client-side-encryption/tests/unified/getKey.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ tests:
5959
arguments:
6060
# *aws_key_id with first three letters replaced with 'A' (value: "3awsawsawsawsa").
6161
id: &non_existent_id { $binary: { base64: AAAzYXdzYXdzYXdzYXdzYQ==, subType: "04" } }
62-
expectResult: null
62+
expectResult: { $$unsetOrMatches: null }
6363
expectEvents:
6464
- client: *client0
6565
events:

0 commit comments

Comments
 (0)