[JAVA-4011] Prepare the change stream code for tests in the unified format Created: 11/Feb/21  Updated: 28/Oct/23  Resolved: 16/Feb/21

Status: Closed
Project: Java Driver
Component/s: Test Coverage
Affects Version/s: None
Fix Version/s: 4.3.0

Type: Improvement Priority: Major - P3
Reporter: Valentin Kavalenka Assignee: Valentin Kavalenka
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Issue split
split from JAVA-3990 Implement change stream oplog parsing... Closed
Backwards Compatibility: Fully Compatible
Documentation Changes: Not Needed

 Description   

Currently we cannot just put a change-streams.json file in the unified test format somewhere in the driver repo and expect it to be run because:

  1. There are no test runners (neither sync nor reactive) for change streams.
  2. There is no location where unified test files can be put. If put in driver-core/src/test/resources/change-streams, they are going to be picked up by AbstractChangeStreamsTest and result in a failure because this runner does not understand the unified syntax.


 Comments   
Comment by Githook User [ 16/Feb/21 ]

Author:

{'name': 'Valentin Kovalenko', 'email': 'valentin.kovalenko@mongodb.com', 'username': 'stIncMale'}

Message: Prepare the change stream code for tests in the unified format (#665)

This commit creates two unified runners for change stream tests and allows putting unified change stream tests in driver-core/src/test/resources/unified-test-format/change-streams.

This commit also implements SyncChangeStreamIterable.withDocumentClass as this method is used by the UnifiedTest runner (see UnifiedCrudHelper.executeChangeStream).

JAVA-4011
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/c04ac6a96e33a15629cc52520cb6619505861852

Generated at Thu Feb 08 09:01:00 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.