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
    • Labels:
      None
    • $i18n.getText("admin.common.words.hide")
      Key Status/Resolution FixVersion
      SCALA-534 Done
      MOTOR-349 Won't Fix
      NODE-2002 Done
      CDRIVER-3186 Fixed 1.15.0
      PYTHON-1865 Duplicate
      CSHARP-2633 Won't Do
      GODRIVER-1125 Done
      PHPLIB-437 Done
      PERL-1104 Won't Fix
      CXX-1784 Fixed 3.5.0
      JAVA-3318 Done
      RUBY-1835 Fixed 2.11.0.rc0
      $i18n.getText("admin.common.words.show")
      #scriptField, #scriptField *{ border: 1px solid black; } #scriptField{ border-collapse: collapse; } #scriptField td { text-align: center; /* Center-align text in table cells */ } #scriptField td.key { text-align: left; /* Left-align text in the Key column */ } #scriptField a { text-decoration: none; /* Remove underlines from links */ border: none; /* Remove border from links */ } /* Add green background color to cells with FixVersion */ #scriptField td.hasFixVersion { background-color: #00FF00; /* Green color code */ } /* Center-align the first row headers */ #scriptField th { text-align: center; } Key Status/Resolution FixVersion SCALA-534 Done MOTOR-349 Won't Fix NODE-2002 Done CDRIVER-3186 Fixed 1.15.0 PYTHON-1865 Duplicate CSHARP-2633 Won't Do GODRIVER-1125 Done PHPLIB-437 Done PERL-1104 Won't Fix CXX-1784 Fixed 3.5.0 JAVA-3318 Done RUBY-1835 Fixed 2.11.0.rc0

      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: