[DRIVERS-1298] Add tests for update/replacement validation in single and bulk write operations Created: 15/Jun/20  Updated: 02/Mar/21

Status: Implementing
Project: Drivers
Component/s: CRUD
Fix Version/s: None

Type: Task Priority: Major - P3
Reporter: Jeremy Mikola Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
depends on PHPLIB-560 Add tests for update/replacement vali... Closed
depends on CDRIVER-3726 Add tests for update/replacement vali... Backlog
depends on CSHARP-3143 Add tests for update/replacement vali... Backlog
depends on GODRIVER-1665 Add tests for update/replacement vali... Backlog
depends on RUBY-2292 Add tests for update/replacement vali... Backlog
depends on RUST-477 Add tests for update/replacement vali... Backlog
depends on CXX-2057 Add tests for update/replacement vali... Closed
depends on JAVA-3772 Add tests for update/replacement vali... Closed
depends on MOTOR-568 Add tests for update/replacement vali... Closed
depends on PYTHON-2301 Add tests for update/replacement vali... Closed
Related
related to NODE-2660 Throw an error if bulk update documen... Closed
Driver Compliance:
Key Status/Resolution FixVersion
CDRIVER-3726 Backlog
CXX-2057 Fixed 3.7.0
CSHARP-3143 Backlog
GODRIVER-1665 Backlog
JAVA-3772 Fixed 4.2.0
MOTOR-568 Duplicate
PYTHON-2301 Duplicate
PHPLIB-560 Fixed 1.7.0-rc1, 1.7.0
RUBY-2292 Backlog
RUST-477 Backlog
SWIFT-899 Won't Fix

 Description   

The update parameter for UpdateOne and UpdateMany operations is invalid if it does not contain atomic operators. Likewise, the replacement parameter for ReplaceOne operations is invalid if it does contain atomic operators. This is discussed in the spec under Update vs. Replace Validation, but there is presently no tests for this logic.

Drivers should sync to CRUD spec tests added in https://github.com/mongodb/specifications/commit/9dc5e9856fde61deafd8ede341d2a4e9bb867353.



 Comments   
Comment by Jeremy Mikola [ 01/Jul/20 ]

Linked SPEC is complete. Moving this ticket 'In Progress' and creating Language tickets.

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