Skip to content

test(DRIVERS-3034): remove/update 4.0 related tests #1796

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
May 7, 2025
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 1 addition & 11 deletions source/change-streams/tests/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -194,23 +194,13 @@ and sharded clusters unless otherwise specified:

11. For a `ChangeStream` under these conditions:

- Running against a server `>=4.0.7`.
- The batch is empty or has been iterated to the last document.

Expected result:

- `getResumeToken` must return the `postBatchResumeToken` from the current command response.

12. For a `ChangeStream` under these conditions:

- Running against a server `<4.0.7`.
- The batch is empty or has been iterated to the last document.

Expected result:

- `getResumeToken` must return the `_id` of the last document returned if one exists.
- `getResumeToken` must return `resumeAfter` from the initial aggregate if the option was specified.
- If `resumeAfter` was not specified, the `getResumeToken` result must be empty.
12. **Removed**

13. For a `ChangeStream` under these conditions:

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,17 +136,6 @@ def create_stale_generation_tests():
data = tmp.format(**locals())
write_test(test_name, data)


def create_pre_42_tests():
tmp = template('pre-42.yml.template')
# All "not writable primary"/"node is recovering" clear the pool on <4.2
for error_name in ERR_CODES:
test_name = f'pre-42-{error_name}'
error_code, = ERR_CODES[error_name]
data = tmp.format(**locals())
write_test(test_name, data)


def create_post_42_tests():
tmp = template('post-42.yml.template')
for error_name in ERR_CODES:
Expand All @@ -161,11 +150,9 @@ def create_post_42_tests():
data = tmp.format(**locals())
write_test(test_name, data)


create_stale_tests()
create_non_stale_tests()
create_stale_generation_tests()
create_pre_42_tests()
create_post_42_tests()

print('Running make')
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading
Loading