Uploaded image for project: 'C Driver'
  1. C Driver
  2. CDRIVER-4374

Only allow extra fields when matching root documents in unified spec tests

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Unknown
    • Resolution: Fixed
    • None
    • 1.22.0, 1.22.0-beta0
    • libmongoc, tests
    • None

    Description

      In runner.centity_map_match is called with allow_extra=false (here), which seemingly conflicts with Allowing Extra Fields in Root-level Documents. This was responsible for a test failure I ran into while implementing CDRIVER-4199 (in find-comment.yml the test only matches the _id field of a selected document, despite it also containing an x field).

      This is somewhat related to CDRIVER-4329, although that had to do APM command/reply assertions and passing allow_extra=true unnecessarily when matching nested fields.

      Attachments

        Issue Links

          Activity

            People

              jmikola@mongodb.com Jeremy Mikola
              jmikola@mongodb.com Jeremy Mikola
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: