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

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

    XMLWordPrintable

Details

    • Task
    • Status: Implementing
    • Major - P3
    • Resolution: Unresolved
    • None
    • None

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated: