-
Type: Improvement
-
Resolution: Duplicate
-
Priority: Unknown
-
None
-
Component/s: Client Side Encryption, Unified Test Runner
-
None
-
Needed
Summary
The current tests users expectResult: null however, it should use {"$$unsetOrMatches": null}.
This operator can be used anywhere a matched value is expected (including expectResult), excluding an array element because Arrays Must Contain the Same Number of Elements. The test runner MUST assert that the actual value either does not exist or matches the expected value. Matching the expected value MUST use the standard rules in Evaluating Matches, which means that it may contain special operators.
This is because its testing the absence of a result and comparing against a Bson Null.
Motivation
Keeps the test runner to spec.
Is this ticket only for tests?
Yes
- duplicates
-
DRIVERS-2382 Update CSE unified tests expectResult: null
- Implementing