Skip to content

Commit

Permalink
finalize tests
Browse files Browse the repository at this point in the history
  • Loading branch information
W-A-James committed Apr 17, 2024
1 parent 96c1d6b commit 50cd542
Show file tree
Hide file tree
Showing 8 changed files with 19 additions and 75 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
description: "loadbalanced-emit-topology-description-changed-before-close"

schemaVersion: "1.17"
schemaVersion: "1.19"

runOnRequirements:
- topologies:
Expand Down Expand Up @@ -39,7 +39,7 @@ tests:
- topologyDescriptionChangedEvent: # unknown -> unknown w disconnected server
previousDescription:
type: "Unknown"
currentDescription: {}
newDescription: {}
- topologyDescriptionChangedEvent: # unknown w disconnected server -> loadBalanced
newDescription:
type: "LoadBalanced"
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
description: "replicaset-emit-topology-description-changed-before-close"

schemaVersion: "1.17"
schemaVersion: "1.19"

runOnRequirements:
- topologies:
Expand Down Expand Up @@ -37,26 +37,10 @@ tests:
ignoreExtraEvents: false
events:
- topologyOpeningEvent: {}
- topologyDescriptionChangedEvent: # unknown -> replset no primary
previousDescription:
type: "Unknown"
newDescription:
type: "ReplicaSetNoPrimary"
- topologyDescriptionChangedEvent: # server connected
previousDescription:
type: "ReplicaSetNoPrimary"
newDescription:
type: "ReplicaSetWithPrimary"
- topologyDescriptionChangedEvent: # server connected
previousDescription:
type: "ReplicaSetWithPrimary"
newDescription:
type: "ReplicaSetWithPrimary"
- topologyDescriptionChangedEvent: # server connected
previousDescription:
type: "ReplicaSetWithPrimary"
newDescription:
type: "ReplicaSetWithPrimary"
- topologyDescriptionChangedEvent: {} # unknown -> replset no primary
- topologyDescriptionChangedEvent: {} # server connected
- topologyDescriptionChangedEvent: {} # server connected
- topologyDescriptionChangedEvent: {} # server connected
- topologyDescriptionChangedEvent: # replicaset -> unknown
previousDescription:
type: "ReplicaSetWithPrimary"
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
description: "sharded-emit-topology-description-changed-before-close"

schemaVersion: "1.17"
schemaVersion: "1.19"

runOnRequirements:
- topologies:
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
description: "standalone-emit-topology-description-changed-before-close"

schemaVersion: "1.17"
schemaVersion: "1.19"

runOnRequirements:
- topologies:
Expand All @@ -20,8 +20,6 @@ tests:
- topologyDescriptionChangedEvent
- topologyOpeningEvent
- topologyClosedEvent
- serverOpeningEvent
- serverClosedEvent
# ensure the topology has been fully discovered before closing the client.
# expected events are initial server discovery and server connect event.
- name: waitForEvent
Expand All @@ -44,13 +42,11 @@ tests:
type: "Unknown"
newDescription:
type: "Unknown"
- serverOpeningEvent: {}
- topologyDescriptionChangedEvent: # unknown w disconnected server -> standalone
previousDescription:
type: "Unknown"
newDescription:
type: "Single"
- serverClosedEvent: {}
- topologyDescriptionChangedEvent: # standalone -> unknown
previousDescription:
type: "Single"
Expand Down

0 comments on commit 50cd542

Please sign in to comment.