Uploaded image for project: 'C++ Driver'
  1. C++ Driver
  2. CXX-1193

Only assert fields present in expected document in CRUD tests

    • Type: Icon: Task Task
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 3.2.0-rc0
    • Affects Version/s: None
    • Component/s: Testing
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Currently, the automated CRUD spec tests require the server version to be passed into the test-specific logic so that the replaceOne tests can suppress returning the upsertedId for server versions less than 2.6. It would be better to avoid doing a version check within the specific test logic, so instead the tests should rebuild the actual document returned from the server with only the fields that are present in the document that the JSON spec file expects.

            Assignee:
            sam.rossi@mongodb.com Samuel Rossi (Inactive)
            Reporter:
            sam.rossi@mongodb.com Samuel Rossi (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: