Skip to content

Commit 2e5069c

Browse files
committed
Sync up SDAM logging test case.
1 parent 199dbc5 commit 2e5069c

File tree

6 files changed

+48
-21
lines changed

6 files changed

+48
-21
lines changed

testdata/server-discovery-and-monitoring/unified/logging-replicaset.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,22 @@
220220
}
221221
}
222222
},
223+
{
224+
"level": "debug",
225+
"component": "topology",
226+
"data": {
227+
"message": "Topology description changed",
228+
"topologyId": {
229+
"$$exists": true
230+
},
231+
"previousDescription": {
232+
"$$exists": true
233+
},
234+
"newDescription": {
235+
"$$exists": true
236+
}
237+
}
238+
},
223239
{
224240
"level": "debug",
225241
"component": "topology",

testdata/server-discovery-and-monitoring/unified/logging-replicaset.yml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -109,13 +109,6 @@ tests:
109109
topologyId: { $$exists: true }
110110
serverHost: { $$type: string }
111111
serverPort: { $$type: [int, long] }
112-
# TODO(GODRIVER-2967): The following log message has been removed from
113-
# the JSON analogue because it assumes that
114-
# "TopologyDescriptionChangedEvent" should occur when a topolgoy is
115-
# closed. This behavior is not clearly defined anywhere and some
116-
# drivers support and some don't.
117-
#
118-
# Need to sync whenever GODRIVER-2967 is unblocked.
119112
- level: debug
120113
component: topology
121114
data:

testdata/server-discovery-and-monitoring/unified/logging-sharded.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,22 @@
187187
}
188188
}
189189
},
190+
{
191+
"level": "debug",
192+
"component": "topology",
193+
"data": {
194+
"message": "Topology description changed",
195+
"topologyId": {
196+
"$$exists": true
197+
},
198+
"previousDescription": {
199+
"$$exists": true
200+
},
201+
"newDescription": {
202+
"$$exists": true
203+
}
204+
}
205+
},
190206
{
191207
"level": "debug",
192208
"component": "topology",

testdata/server-discovery-and-monitoring/unified/logging-sharded.yml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -97,13 +97,6 @@ tests:
9797
topologyId: { $$exists: true }
9898
serverHost: { $$type: string }
9999
serverPort: { $$type: [int, long] }
100-
# TODO(GODRIVER-2967): The following log message has been removed from
101-
# the JSON analogue because it assumes that
102-
# "TopologyDescriptionChangedEvent" should occur when a topolgoy is
103-
# closed. This behavior is not clearly defined anywhere and some
104-
# drivers support and some don't.
105-
#
106-
# Need to sync whenever GODRIVER-2967 is unblocked.
107100
- level: debug
108101
component: topology
109102
data:

testdata/server-discovery-and-monitoring/unified/logging-standalone.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,22 @@
162162
}
163163
}
164164
},
165+
{
166+
"level": "debug",
167+
"component": "topology",
168+
"data": {
169+
"message": "Topology description changed",
170+
"topologyId": {
171+
"$$exists": true
172+
},
173+
"previousDescription": {
174+
"$$exists": true
175+
},
176+
"newDescription": {
177+
"$$exists": true
178+
}
179+
}
180+
},
165181
{
166182
"level": "debug",
167183
"component": "topology",

testdata/server-discovery-and-monitoring/unified/logging-standalone.yml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -84,13 +84,6 @@ tests:
8484
topologyId: { $$exists: true }
8585
serverHost: { $$type: string }
8686
serverPort: { $$type: [int, long] }
87-
# TODO(GODRIVER-2967): The following log message has been removed from
88-
# the JSON analogue because it assumes that
89-
# "TopologyDescriptionChangedEvent" should occur when a topolgoy is
90-
# closed. This behavior is not clearly defined anywhere and some
91-
# drivers support and some don't.
92-
#
93-
# Need to sync whenever GODRIVER-2967 is unblocked.
9487
- level: debug
9588
component: topology
9689
data:

0 commit comments

Comments
 (0)