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

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

      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:
            Unassigned Unassigned
            Reporter:
            warren.james@mongodb.com Warren James
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: