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
    • Labels:
      None
    • $i18n.getText("admin.common.words.hide")
      Key Status/Resolution FixVersion
      CDRIVER-3726 Duplicate
      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 Gone away
      RUST-477 Backlog
      SWIFT-899 Won't Fix
      $i18n.getText("admin.common.words.show")
      #scriptField, #scriptField *{ border: 1px solid black; } #scriptField{ border-collapse: collapse; } #scriptField td { text-align: center; /* Center-align text in table cells */ } #scriptField td.key { text-align: left; /* Left-align text in the Key column */ } #scriptField a { text-decoration: none; /* Remove underlines from links */ border: none; /* Remove border from links */ } /* Add green background color to cells with FixVersion */ #scriptField td.hasFixVersion { background-color: #00FF00; /* Green color code */ } /* Center-align the first row headers */ #scriptField th { text-align: center; } Key Status/Resolution FixVersion CDRIVER-3726 Duplicate 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 Gone away RUST-477 Backlog SWIFT-899 Won't Fix

      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: