Skip to content

Commit 46f7079

Browse files
committed
PYTHON-2970 Resync spec tests
1 parent f7e172a commit 46f7079

File tree

5 files changed

+35
-26
lines changed

5 files changed

+35
-26
lines changed

test/discovery_and_monitoring/rs/electionId_setVersion.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@
8282
"topologyType": "ReplicaSetWithPrimary",
8383
"logicalSessionTimeoutMinutes": null,
8484
"setName": "rs",
85-
"maxSetVersion": 2,
85+
"maxSetVersion": 1,
8686
"maxElectionId": {
8787
"$oid": "000000000000000000000002"
8888
}

test/discovery_and_monitoring/rs/null_election_id.json

Lines changed: 18 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -123,16 +123,19 @@
123123
"outcome": {
124124
"servers": {
125125
"a:27017": {
126-
"type": "RSPrimary",
127-
"setName": "rs",
128-
"setVersion": 1,
129-
"electionId": null
130-
},
131-
"b:27017": {
132126
"type": "Unknown",
133127
"setName": null,
128+
"setVersion": null,
134129
"electionId": null
135130
},
131+
"b:27017": {
132+
"type": "RSPrimary",
133+
"setName": "rs",
134+
"setVersion": 1,
135+
"electionId": {
136+
"$oid": "000000000000000000000002"
137+
}
138+
},
136139
"c:27017": {
137140
"type": "Unknown",
138141
"setName": null,
@@ -174,16 +177,19 @@
174177
"outcome": {
175178
"servers": {
176179
"a:27017": {
177-
"type": "RSPrimary",
178-
"setName": "rs",
179-
"setVersion": 1,
180-
"electionId": null
181-
},
182-
"b:27017": {
183180
"type": "Unknown",
184181
"setName": null,
182+
"setVersion": null,
185183
"electionId": null
186184
},
185+
"b:27017": {
186+
"type": "RSPrimary",
187+
"setName": "rs",
188+
"setVersion": 1,
189+
"electionId": {
190+
"$oid": "000000000000000000000002"
191+
}
192+
},
187193
"c:27017": {
188194
"type": "Unknown",
189195
"setName": null,

test/discovery_and_monitoring/rs/secondary_ignore_ok_0.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"description": "New primary",
2+
"description": "Secondary ignored when ok is zero",
33
"uri": "mongodb://a,b/?replicaSet=rs",
44
"phases": [
55
{

test/discovery_and_monitoring/rs/setversion_without_electionid.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -63,14 +63,14 @@
6363
"outcome": {
6464
"servers": {
6565
"a:27017": {
66-
"type": "Unknown",
67-
"setName": null,
66+
"type": "RSPrimary",
67+
"setName": "rs",
68+
"setVersion": 2,
6869
"electionId": null
6970
},
7071
"b:27017": {
71-
"type": "RSPrimary",
72-
"setName": "rs",
73-
"setVersion": 1,
72+
"type": "Unknown",
73+
"setName": null,
7474
"electionId": null
7575
}
7676
},

test/discovery_and_monitoring/rs/use_setversion_without_electionid.json

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -71,20 +71,23 @@
7171
"outcome": {
7272
"servers": {
7373
"a:27017": {
74+
"type": "RSPrimary",
75+
"setName": "rs",
76+
"setVersion": 1,
77+
"electionId": {
78+
"$oid": "000000000000000000000001"
79+
}
80+
},
81+
"b:27017": {
7482
"type": "Unknown",
7583
"setName": null,
7684
"electionId": null
77-
},
78-
"b:27017": {
79-
"type": "RSPrimary",
80-
"setName": "rs",
81-
"setVersion": 2
8285
}
8386
},
8487
"topologyType": "ReplicaSetWithPrimary",
8588
"logicalSessionTimeoutMinutes": null,
8689
"setName": "rs",
87-
"maxSetVersion": 2,
90+
"maxSetVersion": 1,
8891
"maxElectionId": {
8992
"$oid": "000000000000000000000001"
9093
}
@@ -131,7 +134,7 @@
131134
"topologyType": "ReplicaSetWithPrimary",
132135
"logicalSessionTimeoutMinutes": null,
133136
"setName": "rs",
134-
"maxSetVersion": 2,
137+
"maxSetVersion": 1,
135138
"maxElectionId": {
136139
"$oid": "000000000000000000000002"
137140
}

0 commit comments

Comments
 (0)