forked from mongodb/mongo-rust-driver
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathlogging-loadbalanced.yml
81 lines (78 loc) · 2.75 KB
/
logging-loadbalanced.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
description: "loadbalanced-logging"
schemaVersion: "1.16"
runOnRequirements:
- topologies:
- load-balanced
minServerVersion: "4.4" # awaitable hello
tests:
- description: "Topology lifecycle"
operations:
- name: createEntities
object: testRunner
arguments:
entities:
- client:
id: &client client
observeLogMessages:
topology: debug
observeEvents:
- topologyDescriptionChangedEvent
# ensure the topology has been fully discovered before closing the client.
# expected events are initial server discovery and server connect event.
- name: waitForEvent
object: testRunner
arguments:
client: *client
event:
topologyDescriptionChangedEvent: {}
count: 2
- name: close
object: *client
expectLogMessages:
- client: *client
messages:
- level: debug
component: topology
data:
message: "Starting topology monitoring"
topologyId: { $$exists: true }
- level: debug
component: topology
data:
message: "Topology description changed"
topologyId: { $$exists: true }
previousDescription: { $$exists: true } # unknown topology
newDescription: { $$exists: true } # unknown topology, disconnected server
- level: debug
component: topology
data:
message: "Starting server monitoring"
topologyId: { $$exists: true }
serverHost: { $$type: string }
serverPort: { $$type: [int, long] }
- level: debug
component: topology
data:
message: "Topology description changed"
topologyId: { $$exists: true }
previousDescription: { $$exists: true }
newDescription: { $$exists: true } # loadBalanced topology
- level: debug
component: topology
data:
message: "Stopped server monitoring"
topologyId: { $$exists: true }
serverHost: { $$type: string }
serverPort: { $$type: [int, long] }
- level: debug
component: topology
data:
message: "Topology description changed"
topologyId: { $$exists: true }
previousDescription: { $$exists: true } # loadBalanced topology
newDescription: { $$exists: true } # unknown topology
- level: debug
component: topology
data:
message: "Stopped topology monitoring"
topologyId: { $$exists: true }