[DRIVERS-2382] Update CSE unified tests expectResult: null Created: 07/Jul/22  Updated: 17/Aug/22

Status: Implementing
Project: Drivers
Component/s: Client Side Encryption
Fix Version/s: None

Type: Improvement Priority: Unknown
Reporter: Ross Lawley Assignee: Ross Lawley
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
is duplicated by DRIVERS-2383 Update CSE unified tests expectResult... Closed
Issue split
split to PHPLIB-907 Update CSE unified tests expectResult... Closed
split to CXX-2541 Update CSE unified tests expectResult... Backlog
split to CDRIVER-4423 Update CSE unified tests expectResult... Closed
split to CSHARP-4243 Update CSE unified tests expectResult... Closed
split to GODRIVER-2485 Update CSE unified tests expectResult... Closed
split to JAVA-4670 Update CSE unified tests expectResult... Closed
split to MOTOR-990 Update CSE unified tests expectResult... Closed
split to NODE-4390 Update CSE unified tests expectResult... Closed
split to PYTHON-3344 Update CSE unified tests expectResult... Closed
split to RUBY-3045 Update CSE unified tests expectResult... Closed
split to RUST-1397 Update CSE unified tests expectResult... Closed
Epic Link: Key Management API
Driver Changes: Needed
Quarter: FY23Q2
Downstream Changes Summary:

Drivers should sync key management unified tests with https://github.com/mongodb/specifications/commit/79f682a4a7e62fcce18099b4552d48d1f679e096.

 

Driver Compliance:
Key Status/Resolution FixVersion
CDRIVER-4423 Fixed 1.23.0
CXX-2541 Backlog
CSHARP-4243 Fixed 2.17.0
GODRIVER-2485 Fixed 1.11.0
JAVA-4670 Done
NODE-4390 Fixed 4.9.0
MOTOR-990 Duplicate
PYTHON-3344 Duplicate
PHPLIB-907 Fixed 1.15.0
RUBY-3045 Fixed 2.19.0
RUST-1397 Duplicate
SWIFT-1596 Duplicate

 Description   

Summary

The current tests users expectResult: null however, it should use {"$$unsetOrMatches": null}.

$$unsetOrMatches:

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



 Comments   
Comment by Githook User [ 07/Jul/22 ]

Author:

{'name': 'Ross Lawley', 'email': 'ross.lawley@gmail.com', 'username': 'rozza'}

Message: Updated CSE tests where there is no expected result (#1270)

DRIVERS-2382
Branch: master
https://github.com/mongodb/specifications/commit/79f682a4a7e62fcce18099b4552d48d1f679e096

Comment by Ross Lawley [ 07/Jul/22 ]

PR: https://github.com/mongodb/specifications/pull/1270

Generated at Thu Feb 08 08:25:26 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.