[CDRIVER-3337] Adhere change stream test spec runner to spec Created: 26/Aug/19  Updated: 31/Mar/22

Status: Backlog
Project: C Driver
Component/s: libmongoc, tests
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Minor - P4
Reporter: Kevin Albertson Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to CDRIVER-3714 Change stream test runner should have... Backlog
is related to CDRIVER-3296 check_json_apm_events does not fail i... Closed
Epic Link: CDRIVER-2733

 Description   

The change stream test runner behaves slightly different from how the change stream test readme dictates:
https://github.com/mongodb/specifications/blob/master/source/change-streams/tests/README.rst#spec-test-runner

The change stream test runner should use a separate client for operations and for the change stream to prevent the command monitoring events from intermixing. Right now, our tests pass because we allow only match a subset of events (for just this test runner) by setting command_monitoring_allow_subset in test_change_stream_spec_cb. If we adhere to the readme, we may be able to remove that flag (which complicates the matching logic, and has been a source of matching bugs before).


Generated at Wed Feb 07 21:17:45 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.