Skip to content

Commit eb7389a

Browse files
RUST-959 Bump maxWireVersion in SDAM monitoring tests (#432)
1 parent e7881da commit eb7389a

File tree

7 files changed

+82
-84
lines changed

7 files changed

+82
-84
lines changed

src/test/spec/json/server-discovery-and-monitoring/monitoring/discovered_standalone.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ phases:
55
responses:
66
-
77
- "a:27017"
8-
- { ok: 1, helloOk: true, isWritablePrimary: true, minWireVersion: 0, maxWireVersion: 4 }
8+
- { ok: 1, helloOk: true, isWritablePrimary: true, minWireVersion: 0, maxWireVersion: 6 }
99

1010
outcome:
1111
events:
Lines changed: 38 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,113 +1,112 @@
11
description: "Monitoring a topology that is a replica set with no primary connected"
22
uri: "mongodb://a,b"
3-
phases:
4-
-
5-
responses:
6-
-
3+
phases:
4+
-
5+
responses:
6+
-
77
- "a:27017"
8-
-
8+
-
99
ok: 1
1010
helloOk: true
1111
isWritablePrimary: false
1212
secondary: true
1313
setName: "rs"
1414
setVersion: 1
1515
primary: "b:27017"
16-
hosts:
16+
hosts:
1717
- "a:27017"
1818
- "b:27017"
1919
minWireVersion: 0
20-
maxWireVersion: 4
21-
outcome:
22-
events:
23-
-
24-
topology_opening_event:
20+
maxWireVersion: 6
21+
outcome:
22+
events:
23+
-
24+
topology_opening_event:
2525
topologyId: "42"
26-
-
27-
topology_description_changed_event:
26+
-
27+
topology_description_changed_event:
2828
topologyId: "42"
29-
previousDescription:
29+
previousDescription:
3030
topologyType: "Unknown"
3131
servers: []
32-
newDescription:
32+
newDescription:
3333
topologyType: "Unknown"
34-
servers:
35-
-
34+
servers:
35+
-
3636
address: "a:27017"
3737
arbiters: []
3838
hosts: []
3939
passives: []
4040
type: "Unknown"
41-
-
41+
-
4242
address: "b:27017"
4343
arbiters: []
4444
hosts: []
4545
passives: []
4646
type: "Unknown"
47-
-
48-
server_opening_event:
47+
-
48+
server_opening_event:
4949
topologyId: "42"
5050
address: "a:27017"
51-
-
52-
server_opening_event:
51+
-
52+
server_opening_event:
5353
topologyId: "42"
5454
address: "b:27017"
55-
-
56-
server_description_changed_event:
55+
-
56+
server_description_changed_event:
5757
topologyId: "42"
5858
address: "a:27017"
59-
previousDescription:
59+
previousDescription:
6060
address: "a:27017"
6161
arbiters: []
6262
hosts: []
6363
passives: []
6464
type: "Unknown"
65-
newDescription:
65+
newDescription:
6666
address: "a:27017"
6767
arbiters: []
68-
hosts:
68+
hosts:
6969
- "a:27017"
7070
- "b:27017"
7171
passives: []
7272
primary: "b:27017"
7373
setName: "rs"
7474
type: "RSSecondary"
75-
-
76-
topology_description_changed_event:
75+
-
76+
topology_description_changed_event:
7777
topologyId: "42"
78-
previousDescription:
78+
previousDescription:
7979
topologyType: "Unknown"
80-
servers:
81-
-
80+
servers:
81+
-
8282
address: "a:27017"
8383
arbiters: []
8484
hosts: []
8585
passives: []
8686
type: "Unknown"
87-
-
87+
-
8888
address: "b:27017"
8989
arbiters: []
9090
hosts: []
9191
passives: []
9292
type: "Unknown"
93-
newDescription:
93+
newDescription:
9494
topologyType: "ReplicaSetNoPrimary"
9595
setName: "rs"
96-
servers:
97-
-
96+
servers:
97+
-
9898
address: "a:27017"
9999
arbiters: []
100-
hosts:
100+
hosts:
101101
- "a:27017"
102102
- "b:27017"
103103
passives: []
104104
primary: "b:27017"
105105
setName: "rs"
106106
type: "RSSecondary"
107-
-
107+
-
108108
address: "b:27017"
109109
arbiters: []
110110
hosts: []
111111
passives: []
112112
type: "PossiblePrimary"
113-
Lines changed: 38 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,112 +1,111 @@
11
description: "Monitoring a topology that is a replica set with a primary connected"
22
uri: "mongodb://a,b"
3-
phases:
4-
-
5-
responses:
6-
-
3+
phases:
4+
-
5+
responses:
6+
-
77
- "a:27017"
8-
-
8+
-
99
ok: 1
1010
helloOk: true
1111
isWritablePrimary: true
1212
setName: "rs"
1313
setVersion: 1
1414
primary: "a:27017"
15-
hosts:
15+
hosts:
1616
- "a:27017"
1717
- "b:27017"
1818
minWireVersion: 0
19-
maxWireVersion: 4
20-
outcome:
21-
events:
22-
-
23-
topology_opening_event:
19+
maxWireVersion: 6
20+
outcome:
21+
events:
22+
-
23+
topology_opening_event:
2424
topologyId: "42"
25-
-
26-
topology_description_changed_event:
25+
-
26+
topology_description_changed_event:
2727
topologyId: "42"
28-
previousDescription:
28+
previousDescription:
2929
topologyType: "Unknown"
3030
servers: []
31-
newDescription:
31+
newDescription:
3232
topologyType: "Unknown"
33-
servers:
34-
-
33+
servers:
34+
-
3535
address: "a:27017"
3636
arbiters: []
3737
hosts: []
3838
passives: []
3939
type: "Unknown"
40-
-
40+
-
4141
address: "b:27017"
4242
arbiters: []
4343
hosts: []
4444
passives: []
4545
type: "Unknown"
46-
-
47-
server_opening_event:
46+
-
47+
server_opening_event:
4848
topologyId: "42"
4949
address: "a:27017"
50-
-
51-
server_opening_event:
50+
-
51+
server_opening_event:
5252
topologyId: "42"
5353
address: "b:27017"
54-
-
55-
server_description_changed_event:
54+
-
55+
server_description_changed_event:
5656
topologyId: "42"
5757
address: "a:27017"
58-
previousDescription:
58+
previousDescription:
5959
address: "a:27017"
6060
arbiters: []
6161
hosts: []
6262
passives: []
6363
type: "Unknown"
64-
newDescription:
64+
newDescription:
6565
address: "a:27017"
6666
arbiters: []
67-
hosts:
67+
hosts:
6868
- "a:27017"
6969
- "b:27017"
7070
passives: []
7171
primary: "a:27017"
7272
setName: "rs"
7373
type: "RSPrimary"
74-
-
75-
topology_description_changed_event:
74+
-
75+
topology_description_changed_event:
7676
topologyId: "42"
77-
previousDescription:
77+
previousDescription:
7878
topologyType: "Unknown"
79-
servers:
80-
-
79+
servers:
80+
-
8181
address: "a:27017"
8282
arbiters: []
8383
hosts: []
8484
passives: []
8585
type: "Unknown"
86-
-
86+
-
8787
address: "b:27017"
8888
arbiters: []
8989
hosts: []
9090
passives: []
9191
type: "Unknown"
92-
newDescription:
92+
newDescription:
9393
topologyType: "ReplicaSetWithPrimary"
9494
setName: "rs"
95-
servers:
96-
-
95+
servers:
96+
-
9797
address: "a:27017"
9898
arbiters: []
99-
hosts:
99+
hosts:
100100
- "a:27017"
101101
- "b:27017"
102102
passives: []
103103
primary: "a:27017"
104104
setName: "rs"
105105
type: "RSPrimary"
106-
-
106+
-
107107
address: "b:27017"
108108
arbiters: []
109109
hosts: []
110110
passives: []
111111
type: "Unknown"
112-

src/test/spec/json/server-discovery-and-monitoring/monitoring/replica_set_with_removal.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ phases:
5050
primary: "a:27017",
5151
hosts: [ "a:27017" ],
5252
minWireVersion: 0,
53-
maxWireVersion: 4
53+
maxWireVersion: 6
5454
}
5555
-
5656
- "b:27017"

src/test/spec/json/server-discovery-and-monitoring/monitoring/required_replica_set.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ phases:
1414
primary: "a:27017",
1515
hosts: [ "a:27017", "b:27017" ],
1616
minWireVersion: 0,
17-
maxWireVersion: 4
17+
maxWireVersion: 6
1818
}
1919
outcome:
2020
events:

src/test/spec/json/server-discovery-and-monitoring/monitoring/standalone.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ phases:
55
responses:
66
-
77
- "a:27017"
8-
- { ok: 1, helloOk: true, isWritablePrimary: true, minWireVersion: 0, maxWireVersion: 4 }
8+
- { ok: 1, helloOk: true, isWritablePrimary: true, minWireVersion: 0, maxWireVersion: 6 }
99

1010
outcome:
1111
events:

src/test/spec/json/server-discovery-and-monitoring/monitoring/standalone_suppress_equal_description_changes.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ phases:
55
responses:
66
-
77
- "a:27017"
8-
- { ok: 1, helloOk: true, isWritablePrimary: true, minWireVersion: 0, maxWireVersion: 4 }
8+
- { ok: 1, helloOk: true, isWritablePrimary: true, minWireVersion: 0, maxWireVersion: 6 }
99
-
1010
- "a:27017"
11-
- { ok: 1, helloOk: true, isWritablePrimary: true, minWireVersion: 0, maxWireVersion: 4 }
11+
- { ok: 1, helloOk: true, isWritablePrimary: true, minWireVersion: 0, maxWireVersion: 6 }
1212

1313
outcome:
1414
events:

0 commit comments

Comments
 (0)