Skip to content

Commit 09aef81

Browse files
authored
DRIVERS-1864 Resync SDAM spec tests (#707)
1 parent 3c8b783 commit 09aef81

File tree

95 files changed

+178
-9
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

95 files changed

+178
-9
lines changed

test/discovery_and_monitoring/rs/compatible.json

+2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"a:27017",
99
{
1010
"ok": 1,
11+
"helloOk": true,
1112
"isWritablePrimary": true,
1213
"setName": "rs",
1314
"hosts": [
@@ -22,6 +23,7 @@
2223
"b:27017",
2324
{
2425
"ok": 1,
26+
"helloOk": true,
2527
"isWritablePrimary": false,
2628
"secondary": true,
2729
"setName": "rs",

test/discovery_and_monitoring/rs/compatible_unknown.json

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"a:27017",
99
{
1010
"ok": 1,
11+
"helloOk": true,
1112
"isWritablePrimary": true,
1213
"setName": "rs",
1314
"hosts": [

test/discovery_and_monitoring/rs/discover_arbiters.json

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"a:27017",
99
{
1010
"ok": 1,
11+
"helloOk": true,
1112
"isWritablePrimary": true,
1213
"hosts": [
1314
"a:27017"

test/discovery_and_monitoring/rs/discover_arbiters_replicaset.json

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"a:27017",
99
{
1010
"ok": 1,
11+
"helloOk": true,
1112
"isWritablePrimary": true,
1213
"hosts": [
1314
"a:27017"

test/discovery_and_monitoring/rs/discover_ghost.json

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"b:27017",
99
{
1010
"ok": 1,
11+
"helloOk": true,
1112
"isWritablePrimary": false,
1213
"isreplicaset": true,
1314
"minWireVersion": 0,

test/discovery_and_monitoring/rs/discover_ghost_replicaset.json

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"b:27017",
99
{
1010
"ok": 1,
11+
"helloOk": true,
1112
"isWritablePrimary": false,
1213
"isreplicaset": true,
1314
"minWireVersion": 0,

test/discovery_and_monitoring/rs/discover_hidden.json

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"a:27017",
99
{
1010
"ok": 1,
11+
"helloOk": true,
1112
"isWritablePrimary": false,
1213
"secondary": true,
1314
"hidden": true,

test/discovery_and_monitoring/rs/discover_hidden_replicaset.json

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"a:27017",
99
{
1010
"ok": 1,
11+
"helloOk": true,
1112
"isWritablePrimary": false,
1213
"secondary": true,
1314
"hidden": true,

test/discovery_and_monitoring/rs/discover_passives.json

+2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"a:27017",
99
{
1010
"ok": 1,
11+
"helloOk": true,
1112
"isWritablePrimary": true,
1213
"hosts": [
1314
"a:27017"
@@ -43,6 +44,7 @@
4344
"b:27017",
4445
{
4546
"ok": 1,
47+
"helloOk": true,
4648
"isWritablePrimary": false,
4749
"secondary": true,
4850
"passive": true,

test/discovery_and_monitoring/rs/discover_passives_replicaset.json

+2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"a:27017",
99
{
1010
"ok": 1,
11+
"helloOk": true,
1112
"isWritablePrimary": true,
1213
"hosts": [
1314
"a:27017"
@@ -43,6 +44,7 @@
4344
"b:27017",
4445
{
4546
"ok": 1,
47+
"helloOk": true,
4648
"isWritablePrimary": false,
4749
"secondary": true,
4850
"passive": true,

test/discovery_and_monitoring/rs/discover_primary.json

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"a:27017",
99
{
1010
"ok": 1,
11+
"helloOk": true,
1112
"isWritablePrimary": true,
1213
"setName": "rs",
1314
"hosts": [

test/discovery_and_monitoring/rs/discover_primary_replicaset.json

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"a:27017",
99
{
1010
"ok": 1,
11+
"helloOk": true,
1112
"isWritablePrimary": true,
1213
"setName": "rs",
1314
"hosts": [

test/discovery_and_monitoring/rs/discover_rsother.json

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"b:27017",
99
{
1010
"ok": 1,
11+
"helloOk": true,
1112
"isWritablePrimary": false,
1213
"secondary": false,
1314
"hosts": [

test/discovery_and_monitoring/rs/discover_rsother_replicaset.json

+2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"a:27017",
99
{
1010
"ok": 1,
11+
"helloOk": true,
1112
"isWritablePrimary": false,
1213
"secondary": true,
1314
"hidden": true,
@@ -24,6 +25,7 @@
2425
"b:27017",
2526
{
2627
"ok": 1,
28+
"helloOk": true,
2729
"isWritablePrimary": false,
2830
"secondary": false,
2931
"hosts": [

test/discovery_and_monitoring/rs/discover_secondary.json

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"b:27017",
99
{
1010
"ok": 1,
11+
"helloOk": true,
1112
"isWritablePrimary": false,
1213
"secondary": true,
1314
"setName": "rs",

test/discovery_and_monitoring/rs/discover_secondary_replicaset.json

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"b:27017",
99
{
1010
"ok": 1,
11+
"helloOk": true,
1112
"isWritablePrimary": false,
1213
"secondary": true,
1314
"setName": "rs",

test/discovery_and_monitoring/rs/discovery.json

+4
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"a:27017",
99
{
1010
"ok": 1,
11+
"helloOk": true,
1112
"isWritablePrimary": false,
1213
"secondary": true,
1314
"setName": "rs",
@@ -47,6 +48,7 @@
4748
"b:27017",
4849
{
4950
"ok": 1,
51+
"helloOk": true,
5052
"isWritablePrimary": false,
5153
"secondary": true,
5254
"setName": "rs",
@@ -91,6 +93,7 @@
9193
"d:27017",
9294
{
9395
"ok": 1,
96+
"helloOk": true,
9497
"isWritablePrimary": true,
9598
"setName": "rs",
9699
"hosts": [
@@ -134,6 +137,7 @@
134137
"c:27017",
135138
{
136139
"ok": 1,
140+
"helloOk": true,
137141
"isWritablePrimary": false,
138142
"secondary": true,
139143
"setName": "rs",

test/discovery_and_monitoring/rs/equal_electionids.json

+2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"a:27017",
99
{
1010
"ok": 1,
11+
"helloOk": true,
1112
"isWritablePrimary": true,
1213
"hosts": [
1314
"a:27017",
@@ -26,6 +27,7 @@
2627
"b:27017",
2728
{
2829
"ok": 1,
30+
"helloOk": true,
2931
"isWritablePrimary": true,
3032
"hosts": [
3133
"a:27017",

test/discovery_and_monitoring/rs/hosts_differ_from_seeds.json

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"a:27017",
99
{
1010
"ok": 1,
11+
"helloOk": true,
1112
"isWritablePrimary": true,
1213
"setName": "rs",
1314
"hosts": [

test/discovery_and_monitoring/rs/incompatible_arbiter.json

+2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"a:27017",
99
{
1010
"ok": 1,
11+
"helloOk": true,
1112
"isWritablePrimary": true,
1213
"setName": "rs",
1314
"hosts": [
@@ -22,6 +23,7 @@
2223
"b:27017",
2324
{
2425
"ok": 1,
26+
"helloOk": true,
2527
"arbiterOnly": true,
2628
"setName": "rs",
2729
"hosts": [

test/discovery_and_monitoring/rs/incompatible_ghost.json

+2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"a:27017",
99
{
1010
"ok": 1,
11+
"helloOk": true,
1112
"isWritablePrimary": true,
1213
"setName": "rs",
1314
"hosts": [
@@ -22,6 +23,7 @@
2223
"b:27017",
2324
{
2425
"ok": 1,
26+
"helloOk": true,
2527
"isreplicaset": true,
2628
"minWireVersion": 0,
2729
"maxWireVersion": 1

test/discovery_and_monitoring/rs/incompatible_other.json

+2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"a:27017",
99
{
1010
"ok": 1,
11+
"helloOk": true,
1112
"isWritablePrimary": true,
1213
"setName": "rs",
1314
"hosts": [
@@ -22,6 +23,7 @@
2223
"b:27017",
2324
{
2425
"ok": 1,
26+
"helloOk": true,
2527
"hidden": true,
2628
"setName": "rs",
2729
"hosts": [

test/discovery_and_monitoring/rs/ls_timeout.json

+6
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"a:27017",
99
{
1010
"ok": 1,
11+
"helloOk": true,
1112
"isWritablePrimary": true,
1213
"hosts": [
1314
"a:27017",
@@ -53,6 +54,7 @@
5354
"d:27017",
5455
{
5556
"ok": 1,
57+
"helloOk": true,
5658
"isWritablePrimary": false,
5759
"isreplicaset": true,
5860
"minWireVersion": 0,
@@ -90,6 +92,7 @@
9092
"e:27017",
9193
{
9294
"ok": 1,
95+
"helloOk": true,
9396
"isWritablePrimary": false,
9497
"hosts": [
9598
"a:27017",
@@ -136,6 +139,7 @@
136139
"b:27017",
137140
{
138141
"ok": 1,
142+
"helloOk": true,
139143
"isWritablePrimary": false,
140144
"secondary": true,
141145
"hosts": [
@@ -184,6 +188,7 @@
184188
"c:27017",
185189
{
186190
"ok": 1,
191+
"helloOk": true,
187192
"isWritablePrimary": false,
188193
"setName": "rs",
189194
"hidden": true,
@@ -226,6 +231,7 @@
226231
"b:27017",
227232
{
228233
"ok": 1,
234+
"helloOk": true,
229235
"isWritablePrimary": false,
230236
"secondary": true,
231237
"hosts": [

test/discovery_and_monitoring/rs/member_reconfig.json

+2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"a:27017",
99
{
1010
"ok": 1,
11+
"helloOk": true,
1112
"isWritablePrimary": true,
1213
"setName": "rs",
1314
"hosts": [
@@ -41,6 +42,7 @@
4142
"a:27017",
4243
{
4344
"ok": 1,
45+
"helloOk": true,
4446
"isWritablePrimary": true,
4547
"setName": "rs",
4648
"hosts": [

test/discovery_and_monitoring/rs/member_standalone.json

+2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"b:27017",
99
{
1010
"ok": 1,
11+
"helloOk": true,
1112
"isWritablePrimary": true,
1213
"minWireVersion": 0,
1314
"maxWireVersion": 6
@@ -32,6 +33,7 @@
3233
"a:27017",
3334
{
3435
"ok": 1,
36+
"helloOk": true,
3537
"isWritablePrimary": true,
3638
"setName": "rs",
3739
"hosts": [

test/discovery_and_monitoring/rs/new_primary.json

+2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"a:27017",
99
{
1010
"ok": 1,
11+
"helloOk": true,
1112
"isWritablePrimary": true,
1213
"setName": "rs",
1314
"hosts": [
@@ -41,6 +42,7 @@
4142
"b:27017",
4243
{
4344
"ok": 1,
45+
"helloOk": true,
4446
"isWritablePrimary": true,
4547
"setName": "rs",
4648
"hosts": [

test/discovery_and_monitoring/rs/new_primary_new_electionid.json

+3
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"a:27017",
99
{
1010
"ok": 1,
11+
"helloOk": true,
1112
"isWritablePrimary": true,
1213
"hosts": [
1314
"a:27017",
@@ -54,6 +55,7 @@
5455
"b:27017",
5556
{
5657
"ok": 1,
58+
"helloOk": true,
5759
"isWritablePrimary": true,
5860
"hosts": [
5961
"a:27017",
@@ -100,6 +102,7 @@
100102
"a:27017",
101103
{
102104
"ok": 1,
105+
"helloOk": true,
103106
"isWritablePrimary": true,
104107
"hosts": [
105108
"a:27017",

0 commit comments

Comments
 (0)