Skip to content

Commit 0747ed7

Browse files
committed
Updated server discovery and monitoring specification tests
JAVA-1799
1 parent 0ba0235 commit 0747ed7

14 files changed

+562
-340
lines changed
Lines changed: 56 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -1,61 +1,58 @@
11
{
2-
"description": "New primary with equal electionId",
3-
"phases": [
4-
{
5-
"outcome": {
6-
"maxElectionId": {
7-
"$oid": "000000000000000000000001"
8-
},
9-
"servers": {
10-
"a:27017": {
11-
"electionId": null,
12-
"setName": null,
13-
"type": "Unknown"
14-
},
15-
"b:27017": {
16-
"electionId": {
17-
"$oid": "000000000000000000000001"
18-
},
19-
"setName": "rs",
20-
"type": "RSPrimary"
21-
}
22-
},
23-
"setName": "rs",
24-
"topologyType": "ReplicaSetWithPrimary"
25-
},
26-
"responses": [
27-
[
28-
"a:27017",
29-
{
30-
"electionId": {
31-
"$oid": "000000000000000000000001"
32-
},
33-
"hosts": [
34-
"a:27017",
35-
"b:27017"
36-
],
37-
"ismaster": true,
38-
"ok": 1,
39-
"setName": "rs"
40-
}
41-
],
42-
[
43-
"b:27017",
44-
{
45-
"electionId": {
46-
"$oid": "000000000000000000000001"
47-
},
48-
"hosts": [
49-
"a:27017",
50-
"b:27017"
51-
],
52-
"ismaster": true,
53-
"ok": 1,
54-
"setName": "rs"
55-
}
56-
]
57-
]
58-
}
59-
],
60-
"uri": "mongodb://a/?replicaSet=rs"
2+
"description": "New primary with equal electionId",
3+
"phases": [
4+
{
5+
"outcome": {
6+
"servers": {
7+
"a:27017": {
8+
"electionId": null,
9+
"setName": null,
10+
"type": "Unknown"
11+
},
12+
"b:27017": {
13+
"electionId": {
14+
"$oid": "000000000000000000000001"
15+
},
16+
"setName": "rs",
17+
"type": "RSPrimary"
18+
}
19+
},
20+
"setName": "rs",
21+
"topologyType": "ReplicaSetWithPrimary"
22+
},
23+
"responses": [
24+
[
25+
"a:27017",
26+
{
27+
"electionId": {
28+
"$oid": "000000000000000000000001"
29+
},
30+
"hosts": [
31+
"a:27017",
32+
"b:27017"
33+
],
34+
"ismaster": true,
35+
"ok": 1,
36+
"setName": "rs"
37+
}
38+
],
39+
[
40+
"b:27017",
41+
{
42+
"electionId": {
43+
"$oid": "000000000000000000000001"
44+
},
45+
"hosts": [
46+
"a:27017",
47+
"b:27017"
48+
],
49+
"ismaster": true,
50+
"ok": 1,
51+
"setName": "rs"
52+
}
53+
]
54+
]
55+
}
56+
],
57+
"uri": "mongodb://a/?replicaSet=rs"
6158
}
Lines changed: 36 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,38 @@
11
{
2-
"description": "Ignore a secondary's electionId",
3-
"phases": [
4-
{
5-
"outcome": {
6-
"maxElectionId": null,
7-
"servers": {
8-
"a:27017": {
9-
"electionId": {
10-
"$oid": "000000000000000000000001"
11-
},
12-
"setName": "rs",
13-
"type": "RSSecondary"
14-
}
15-
},
16-
"setName": "rs",
17-
"topologyType": "ReplicaSetNoPrimary"
18-
},
19-
"responses": [
20-
[
21-
"a:27017",
22-
{
23-
"electionId": {
24-
"$oid": "000000000000000000000001"
25-
},
26-
"hosts": [
27-
"a:27017"
28-
],
29-
"ismaster": false,
30-
"ok": 1,
31-
"secondary": true,
32-
"setName": "rs"
33-
}
34-
]
35-
]
36-
}
37-
],
38-
"uri": "mongodb://a/?replicaSet=rs"
2+
"description": "Ignore a secondary's electionId",
3+
"phases": [
4+
{
5+
"outcome": {
6+
"servers": {
7+
"a:27017": {
8+
"electionId": {
9+
"$oid": "000000000000000000000001"
10+
},
11+
"setName": "rs",
12+
"type": "RSSecondary"
13+
}
14+
},
15+
"setName": "rs",
16+
"topologyType": "ReplicaSetNoPrimary"
17+
},
18+
"responses": [
19+
[
20+
"a:27017",
21+
{
22+
"electionId": {
23+
"$oid": "000000000000000000000001"
24+
},
25+
"hosts": [
26+
"a:27017"
27+
],
28+
"ismaster": false,
29+
"ok": 1,
30+
"secondary": true,
31+
"setName": "rs"
32+
}
33+
]
34+
]
35+
}
36+
],
37+
"uri": "mongodb://a/?replicaSet=rs"
3938
}

0 commit comments

Comments
 (0)