Skip to content
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