[DRIVERS-2325] Add commandStartedEvent assertions to clustered index spec tests Created: 11/May/22  Updated: 20/May/22

Status: Implementing
Project: Drivers
Component/s: Collection Management
Fix Version/s: None

Type: Task Priority: Unknown
Reporter: Jeremy Mikola Assignee: Jeremy Mikola
Resolution: Unresolved Votes: 0
Labels: yaml-test
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Issue split
split to CXX-2515 Add commandStartedEvent assertions to... Backlog
split to CDRIVER-4392 Add commandStartedEvent assertions to... Closed
split to CSHARP-4177 Add commandStartedEvent assertions to... Closed
split to GODRIVER-2424 Add commandStartedEvent assertions to... Closed
split to MOTOR-965 Add commandStartedEvent assertions to... Closed
split to NODE-4255 Add commandStartedEvent assertions to... Closed
split to PHPLIB-874 Add commandStartedEvent assertions to... Closed
split to PYTHON-3274 Add commandStartedEvent assertions to... Closed
split to RUBY-3002 Add commandStartedEvent assertions to... Closed
split to RUST-1329 Add commandStartedEvent assertions to... Closed
split to JAVA-4618 Add commandStartedEvent assertions to... Closed
Related
is related to DRIVERS-1853 Clustered Indexes for all Collections Closed
Driver Changes: Needed
Downstream Changes Summary:

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

Driver Compliance:
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

 Description   

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.



 Comments   
Comment by Githook User [ 17/May/22 ]

Author:

{'name': 'Jeremy Mikola', 'email': 'jmikola@gmail.com', 'username': 'jmikola'}

Message: DRIVERS-2325: commandStartedEvent assertions for clusteredIndex tests (#1217)
Branch: master
https://github.com/mongodb/specifications/commit/600b1af878dc79353b856d026b0ad879577122d3

Comment by Jeremy Mikola [ 16/May/22 ]

https://github.com/mongodb/specifications/pull/1217

Generated at Thu Feb 08 08:25:17 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.