@@ -146,7 +146,12 @@ tests:
146146 arguments :
147147 document : &doc4 { _id: 1, encrypted_double: {"$numberDouble": "1.23"} }
148148 result :
149- errorContains : " Cannot use deterministic encryption for element of type: double"
149+ # DRIVERS-2272: The expected error message changed in mongocryptd 6.0. Before it was:
150+ # "Cannot use deterministic encryption for element of type: double"
151+ # After it is:
152+ # "Cannot encrypt element of type: double"
153+ # Only check for the common suffix.
154+ errorContains : " element of type: double"
150155 - description : " type=decimal"
151156 clientOptions :
152157 autoEncryptOpts :
@@ -159,7 +164,12 @@ tests:
159164 arguments :
160165 document : &doc5 { _id: 1, encrypted_decimal: {"$numberDecimal": "1.23"} }
161166 result :
162- errorContains : " Cannot use deterministic encryption for element of type: decimal"
167+ # DRIVERS-2272: The expected error message changed in mongocryptd 6.0. Before it was:
168+ # "Cannot use deterministic encryption for element of type: decimal"
169+ # After it is:
170+ # "Cannot encrypt element of type: decimal"
171+ # Only check for the common suffix.
172+ errorContains : " element of type: decimal"
163173 - description : " type=binData"
164174 clientOptions :
165175 autoEncryptOpts :
@@ -254,7 +264,12 @@ tests:
254264 arguments :
255265 document : &doc8 { _id: 1, encrypted_javascriptWithScope: {"$code": "var x = 1;", "$scope": {} } }
256266 result :
257- errorContains : " Cannot use deterministic encryption for element of type: javascriptWithScope"
267+ # DRIVERS-2272: The expected error message changed in mongocryptd 6.0. Before it was:
268+ # "Cannot use deterministic encryption for element of type: javascriptWithScope"
269+ # After it is:
270+ # "Cannot encrypt element of type: javascriptWithScope"
271+ # Only check for the common suffix.
272+ errorContains : " element of type: javascriptWithScope"
258273 - description : " type=object"
259274 clientOptions :
260275 autoEncryptOpts :
@@ -267,7 +282,12 @@ tests:
267282 arguments :
268283 document : &doc9 { _id: 1, encrypted_object: {} }
269284 result :
270- errorContains : " Cannot use deterministic encryption for element of type: object"
285+ # DRIVERS-2272: The expected error message changed in mongocryptd 6.0. Before it was:
286+ # "Cannot use deterministic encryption for element of type: object"
287+ # After it is:
288+ # "Cannot encrypt element of type: object"
289+ # Only check for the common suffix.
290+ errorContains : " element of type: object"
271291 - description : " type=timestamp"
272292 clientOptions :
273293 autoEncryptOpts :
@@ -442,7 +462,12 @@ tests:
442462 arguments :
443463 document : &doc17 { _id: 1, encrypted_array: [] }
444464 result :
445- errorContains : " Cannot use deterministic encryption for element of type: array"
465+ # DRIVERS-2272: The expected error message changed in mongocryptd 6.0. Before it was:
466+ # "Cannot use deterministic encryption for element of type: array"
467+ # After it is:
468+ # "Cannot encrypt element of type: array"
469+ # Only check for the common suffix.
470+ errorContains : " element of type: array"
446471 - description : " type=bool"
447472 clientOptions :
448473 autoEncryptOpts :
@@ -455,7 +480,12 @@ tests:
455480 arguments :
456481 document : &doc18 { _id: 1, encrypted_bool: true }
457482 result :
458- errorContains : " Cannot use deterministic encryption for element of type: bool"
483+ # DRIVERS-2272: The expected error message changed in mongocryptd 6.0. Before it was:
484+ # "Cannot use deterministic encryption for element of type: bool"
485+ # After it is:
486+ # "Cannot encrypt element of type: bool"
487+ # Only check for the common suffix.
488+ errorContains : " element of type: bool"
459489 - description : " type=null"
460490 clientOptions :
461491 autoEncryptOpts :
@@ -468,4 +498,4 @@ tests:
468498 arguments :
469499 document : &doc19 { _id: 1, encrypted_null: true }
470500 result :
471- errorContains : " Cannot encrypt element of type: null"
501+ errorContains : " Cannot encrypt element of type: null"
0 commit comments