Skip to content

DRIVERS-2875: add support for TopologyDescriptionChangedEvent to expectEvents #1556

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
Changes from 1 commit
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
8 changes: 8 additions & 0 deletions source/unified-test-format/unified-test-format.md
Original file line number Diff line number Diff line change
Expand Up @@ -415,6 +415,11 @@ The structure of this object is as follows:
notable exception: if `readPreferenceTags` is specified in this object, the key will map to an array of strings,
each representing a tag set, since it is not feasible to define multiple `readPreferenceTags` keys in the object.

Note also that when specifying `directConnection` as true, the connection string used to
instantiate a client MUST only have a single seed and MUST NOT specify the `replicaSet` option.
See the [`directConnection` specification](../uri-options/uri-options.rst#directconnection-uri-option-with-multiple-seeds-or-srv-uri)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
See the [`directConnection` specification](../uri-options/uri-options.rst#directconnection-uri-option-with-multiple-seeds-or-srv-uri)
See the [URI Options spec](../uri-options/uri-options.rst#directconnection-uri-option-with-multiple-seeds-or-srv-uri)

for more information.

Any field in `uriOptions` may be a [$$placeholder](#placeholder) document and the test runner MUST support replacing
the placeholder document with values loaded from the test environment. For example:

Expand Down Expand Up @@ -3415,6 +3420,9 @@ other specs *and* collating spec changes developed in parallel or during the sam

## Changelog

- 2024-04-15: Note that when `directConnection` is set to true test runners should only provide a
single seed.

- 2024-03-25: **Schema version 1.20.**\
Add `previousDescription` and `newDescription` assertions to
`topologyDescriptionChangedEvent` when checking events with `expectEvents`
Expand Down