diff --git a/source/unified-test-format/schema-1.20.json b/source/unified-test-format/schema-1.20.json
index 00f01bfffd..de1d5b75b2 100644
--- a/source/unified-test-format/schema-1.20.json
+++ b/source/unified-test-format/schema-1.20.json
@@ -144,7 +144,9 @@
"connectionCheckedOutEvent",
"connectionCheckedInEvent",
"serverDescriptionChangedEvent",
- "topologyDescriptionChangedEvent"
+ "topologyDescriptionChangedEvent",
+ "topologyOpeningEvent",
+ "topologyClosedEvent"
]
}
},
diff --git a/source/unified-test-format/schema-1.21.json b/source/unified-test-format/schema-1.21.json
index 9d22fe6209..09c3a6882f 100644
--- a/source/unified-test-format/schema-1.21.json
+++ b/source/unified-test-format/schema-1.21.json
@@ -144,7 +144,9 @@
"connectionCheckedOutEvent",
"connectionCheckedInEvent",
"serverDescriptionChangedEvent",
- "topologyDescriptionChangedEvent"
+ "topologyDescriptionChangedEvent",
+ "topologyOpeningEvent",
+ "topologyClosedEvent"
]
}
},
diff --git a/source/unified-test-format/schema-1.22.json b/source/unified-test-format/schema-1.22.json
index 185fbbf620..64d6d48422 100644
--- a/source/unified-test-format/schema-1.22.json
+++ b/source/unified-test-format/schema-1.22.json
@@ -144,7 +144,9 @@
"connectionCheckedOutEvent",
"connectionCheckedInEvent",
"serverDescriptionChangedEvent",
- "topologyDescriptionChangedEvent"
+ "topologyDescriptionChangedEvent",
+ "topologyOpeningEvent",
+ "topologyClosedEvent"
]
}
},
@@ -1116,4 +1118,4 @@
}
}
}
-}
\ No newline at end of file
+}
diff --git a/source/unified-test-format/schema-1.23.json b/source/unified-test-format/schema-1.23.json
index b454199b05..c40ddaf405 100644
--- a/source/unified-test-format/schema-1.23.json
+++ b/source/unified-test-format/schema-1.23.json
@@ -144,7 +144,9 @@
"connectionCheckedOutEvent",
"connectionCheckedInEvent",
"serverDescriptionChangedEvent",
- "topologyDescriptionChangedEvent"
+ "topologyDescriptionChangedEvent",
+ "topologyOpeningEvent",
+ "topologyClosedEvent"
]
}
},
@@ -1156,4 +1158,4 @@
}
}
}
-}
\ No newline at end of file
+}
diff --git a/source/unified-test-format/schema-latest.json b/source/unified-test-format/schema-latest.json
index b454199b05..c40ddaf405 100644
--- a/source/unified-test-format/schema-latest.json
+++ b/source/unified-test-format/schema-latest.json
@@ -144,7 +144,9 @@
"connectionCheckedOutEvent",
"connectionCheckedInEvent",
"serverDescriptionChangedEvent",
- "topologyDescriptionChangedEvent"
+ "topologyDescriptionChangedEvent",
+ "topologyOpeningEvent",
+ "topologyClosedEvent"
]
}
},
@@ -1156,4 +1158,4 @@
}
}
}
-}
\ No newline at end of file
+}
diff --git a/source/unified-test-format/unified-test-format.md b/source/unified-test-format/unified-test-format.md
index a2c0522eb2..1d9f47ccbf 100644
--- a/source/unified-test-format/unified-test-format.md
+++ b/source/unified-test-format/unified-test-format.md
@@ -485,6 +485,8 @@ The structure of this object is as follows:
- [serverHeartbeatSucceededEvent](#expectedEvent_serverHeartbeatSucceededEvent)
- [serverHeartbeatFailedEvent](#expectedEvent_serverHeartbeatFailedEvent)
- [topologyDescriptionChangedEvent](#expectedEvent_topologyDescriptionChangedEvent)
+ - [topologyOpeningEvent](#expectedEvent_topologyOpeningEvent)
+ - [topologyClosedEvent](#expectedEvent_topologyClosedEvent)
@@ -1231,6 +1233,18 @@ The structure of this object is as follows:
Test runners SHOULD ignore any other fields present on the `previousDescription` and `newDescription` fields of the
captured `topologyDescriptionChangedEvent`.
+
+
+- `topologyOpeningEvent`: Optional object. Assertions for one
+ [topologyOpeningEvent](../server-discovery-and-monitoring/server-discovery-and-monitoring-logging-and-monitoring.md#events-api)
+ object.
+
+
+
+- `topologyClosedEvent`: Optional object. Assertions for one
+ [topologyClosedEvent](../server-discovery-and-monitoring/server-discovery-and-monitoring-logging-and-monitoring.md#events-api)
+ object.
+
##### hasServiceId
This field is an optional boolean that specifies whether or not the `serviceId` field of an event is set. If true, test
@@ -3555,6 +3569,9 @@ other specs *and* collating spec changes developed in parallel or during the sam
## Changelog
+- 2025-04-07: Add `topologyOpeningEvent` and `topologyClosedEvent` to the unified test format and schema 1.20+ as they
+ were omitted in error.
+
- 2025-01-21: **Schema version 1.23.**
Support automatic encryption. Add `autoEncryptOpts` to `client` entity.