Uploaded image for project: 'Drivers'
  1. Drivers
  2. DRIVERS-1298

Add tests for update/replacement validation in single and bulk write operations

    • Type: Icon: Task Task
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Component/s: CRUD
    • None

      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.

            Assignee:
            Unassigned Unassigned
            Reporter:
            jmikola@mongodb.com Jeremy Mikola
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: