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

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Unresolved
    • Priority: 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
            Reporter:
            Jeremy Mikola
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: