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

Use $project to ensure only relevant fields in Database-level aggregation spec tests

    • Type: Icon: Task Task
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Component/s: None
    • None

      The existing database-level aggregation spec tests are written such that the command response from the server includes fields that are not included in results such as $readPreference and $clusterTime. Consequently, test-runners in drivers must do extra work to ensure the spec tests don't fail by comparing only those fields that are included in results.command. This can increase the complexity of the test runners significantly. This can be avoided by tweaking the tests to project out only those fields that we are interested in comparing.

            Assignee:
            Unassigned Unassigned
            Reporter:
            rathi.gnanasekaran Rathi Gnanasekaran
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: