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

Add valid-pass and valid-fail tests for $$matchAsRoot and $$matchAsDocument operators

    • Needed
    • Hide

      Summary of necessary driver changes

      •  Adds tests for $$matchAsRoot and $$matchAsDocument and renames the $$lte test file

      Commits for syncing spec/prose tests

      Show
      Summary of necessary driver changes  Adds tests for $$matchAsRoot and $$matchAsDocument and renames the $$lte test file Commits for syncing spec/prose tests  Sync unified test format "valid-fail" and "valid-pass" tests with mongodb/specifications@daf9e07
    • $i18n.getText("admin.common.words.hide")
      Key Status/Resolution FixVersion
      CDRIVER-5777 Backlog
      CXX-3142 Backlog
      CSHARP-5381 Backlog
      GODRIVER-3400 Backlog
      JAVA-5672 Backlog
      NODE-6476 Backlog
      MOTOR-1392 Duplicate
      PYTHON-4925 Fixed 4.11
      PHPLIB-1569 Fixed 1.21.0
      RUBY-3572 Backlog
      RUST-2075 Backlog
      $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-5777 Backlog CXX-3142 Backlog CSHARP-5381 Backlog GODRIVER-3400 Backlog JAVA-5672 Backlog NODE-6476 Backlog MOTOR-1392 Duplicate PYTHON-4925 Fixed 4.11 PHPLIB-1569 Fixed 1.21.0 RUBY-3572 Backlog RUST-2075 Backlog

      Summary

      The spec changes added in schema version 1.13 which add the $$matchAsRoot (relevant spec) and $$matchAsDocument (relevant spec) operators did not add corresponding invalid, valid-fail and valid-pass tests in order to provide drivers a point of comparison when implementing this spec change.

      Motivation

      Who is the affected end user?

      Driver engineers

      How does this affect the end user?

      N/A

      Is this issue urgent?

      No

      Is this ticket required by a downstream team?

      No

      Is this ticket only for tests?

      Yes

      Acceptance Criteria

      Add invalid, valid-pass and valid-fail tests which make use of the the new $$matchAsDocument and $$matchAsRoot operators. I would recommend that the tests we add make use of common drivers features, such as simple CRUD operations, rather than the logging capabilities they were added along with.

            Assignee:
            jmikola@mongodb.com Jeremy Mikola
            Reporter:
            warren.james@mongodb.com Warren James
            Andreas Braun Andreas Braun
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: