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

Add commandStartedEvent assertions to clustered index spec tests

    • Needed
    • Hide

      Drivers should sync collection-management unified spec tests to 600b1af.

      Show
      Drivers should sync collection-management unified spec tests to 600b1af .
    • $i18n.getText("admin.common.words.hide")
      Key Status/Resolution FixVersion
      CDRIVER-4392 Fixed 1.22.0, 1.22.0-beta0
      CXX-2515 Backlog
      CSHARP-4177 Fixed 2.16.0
      GODRIVER-2424 Done 1.10.0, 1.10.0-beta1
      JAVA-4618 Fixed 4.7.0
      NODE-4255 Done 4.7.0
      MOTOR-965 Duplicate
      PYTHON-3274 Fixed 4.3
      PHPLIB-874 Fixed 1.13.0-beta1, 1.13.0
      RUBY-3002 Fixed 2.18.0
      RUST-1329 Duplicate
      SWIFT-1571 Duplicate
      $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 CDRIVER-4392 Fixed 1.22.0, 1.22.0-beta0 CXX-2515 Backlog CSHARP-4177 Fixed 2.16.0 GODRIVER-2424 Done 1.10.0, 1.10.0-beta1 JAVA-4618 Fixed 4.7.0 NODE-4255 Done 4.7.0 MOTOR-965 Duplicate PYTHON-3274 Fixed 4.3 PHPLIB-874 Fixed 1.13.0-beta1, 1.13.0 RUBY-3002 Fixed 2.18.0 RUST-1329 Duplicate SWIFT-1571 Duplicate

      Summary

      b042e47 introduced spec tests where clusteredIndex is specified as an option for the create command helper (e.g. Database.createCollection). These tests do not actually assert that the option is passed to the server. In particular, the "createCollection with clusteredIndex" test only asserts that the newly created collection exists after the createCollection operation is executed.

      Thankfully, the "listCollections includes clusteredIndex" and "listIndexes returns the index" should be suitable guarantee driver correctness, since those tests will fail if clusteredIndex is not correctly passed to create.

      Motivation

      Is this issue urgent?

      No.

      Is this ticket required by a downstream team?

      No.

      Is this ticket only for tests?

      Yes.

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

              Created:
              Updated: