Summary
The update command expectations in various let and comment option tests from DRIVERS-1788 and DRIVERS-742 (and related follow-up tickets) are missing $$unsetOrMatches for the upsert and multi options within expected update statements. Those are necessary since some drivers explicitly send false for these options.
Ultimately, we can consider requiring drivers to leave these fields unset by default (DRIVERS-2271), but for now spec tests will need to use $$unsetOrMatches for portability.
Motivation
Who is the affected end user?
Drivers that explicitly specify false for upsert and/or multi options in update statements.
How does this affect the end user?
APM assertions fail.
Is this issue urgent?
This is only urgent for drivers that explicitly send false for upsert and multi options.
Is this ticket required by a downstream team?
No.
Is this ticket only for tests?
Yes.
- is related to
-
DRIVERS-2192 Fix comment helper specification tests
- Closed
-
DRIVERS-604 Re-sync APM tests for removed upsert/multi fields with default values in update commands
- Implementing
-
DRIVERS-742 Add support for the comment field to all helpers
- Closed
- related to
-
CDRIVER-4329 Do not permit extra fields when matching embedded documents in unified spec tests
- Closed
-
DRIVERS-2271 Omit upsert and multi options in update statements by default
- Backlog
- split to
-
PHPLIB-748 Support 'let' option for multiple CRUD commands
- Closed
-
JAVA-4568 Use $$unsetOrMatches for upsert and multi in update command expectations
- Closed
-
CDRIVER-4330 Use $$unsetOrMatches for upsert and multi in update command expectations
- Backlog
-
RUST-1260 Use $$unsetOrMatches for upsert and multi in update command expectations
- Backlog
-
CSHARP-4134 Use $$unsetOrMatches for upsert and multi in update command expectations
- Closed
-
CXX-2486 Use $$unsetOrMatches for upsert and multi in update command expectations
- Closed
-
GODRIVER-2376 Use $$unsetOrMatches for upsert and multi in update command expectations
- Closed
-
MOTOR-928 Use $$unsetOrMatches for upsert and multi in update command expectations
- Closed
-
NODE-4174 Use $$unsetOrMatches for upsert and multi in update command expectations
- Closed
-
PYTHON-3219 Use $$unsetOrMatches for upsert and multi in update command expectations
- Closed
-
RUBY-2950 Use $$unsetOrMatches for upsert and multi in update command expectations
- Closed