-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
265 changed files
with
10,372 additions
and
565 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
57 changes: 57 additions & 0 deletions
57
test/spec/server-discovery-and-monitoring/rs-pre-6.0/compatible.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
{ | ||
"description": "Replica set member with large maxWireVersion", | ||
"uri": "mongodb://a,b/?replicaSet=rs", | ||
"phases": [ | ||
{ | ||
"responses": [ | ||
[ | ||
"a:27017", | ||
{ | ||
"ok": 1, | ||
"helloOk": true, | ||
"isWritablePrimary": true, | ||
"setName": "rs", | ||
"hosts": [ | ||
"a:27017", | ||
"b:27017" | ||
], | ||
"minWireVersion": 0, | ||
"maxWireVersion": 6 | ||
} | ||
], | ||
[ | ||
"b:27017", | ||
{ | ||
"ok": 1, | ||
"helloOk": true, | ||
"isWritablePrimary": false, | ||
"secondary": true, | ||
"setName": "rs", | ||
"hosts": [ | ||
"a:27017", | ||
"b:27017" | ||
], | ||
"minWireVersion": 0, | ||
"maxWireVersion": 1000 | ||
} | ||
] | ||
], | ||
"outcome": { | ||
"servers": { | ||
"a:27017": { | ||
"type": "RSPrimary", | ||
"setName": "rs" | ||
}, | ||
"b:27017": { | ||
"type": "RSSecondary", | ||
"setName": "rs" | ||
} | ||
}, | ||
"topologyType": "ReplicaSetWithPrimary", | ||
"setName": "rs", | ||
"logicalSessionTimeoutMinutes": null, | ||
"compatible": true | ||
} | ||
} | ||
] | ||
} |
45 changes: 45 additions & 0 deletions
45
test/spec/server-discovery-and-monitoring/rs-pre-6.0/compatible.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
description: "Replica set member with large maxWireVersion" | ||
|
||
uri: "mongodb://a,b/?replicaSet=rs" | ||
|
||
phases: [ | ||
{ | ||
responses: [ | ||
["a:27017", { | ||
ok: 1, | ||
helloOk: true, | ||
isWritablePrimary: true, | ||
setName: "rs", | ||
hosts: ["a:27017", "b:27017"], | ||
minWireVersion: 0, | ||
maxWireVersion: 6 | ||
}], | ||
["b:27017", { | ||
ok: 1, | ||
helloOk: true, | ||
isWritablePrimary: false, | ||
secondary: true, | ||
setName: "rs", | ||
hosts: ["a:27017", "b:27017"], | ||
minWireVersion: 0, | ||
maxWireVersion: 1000 | ||
}] | ||
], | ||
outcome: { | ||
servers: { | ||
"a:27017": { | ||
type: "RSPrimary", | ||
setName: "rs" | ||
}, | ||
"b:27017": { | ||
type: "RSSecondary", | ||
setName: "rs" | ||
} | ||
}, | ||
topologyType: "ReplicaSetWithPrimary", | ||
setName: "rs", | ||
logicalSessionTimeoutMinutes: null, | ||
compatible: true | ||
} | ||
} | ||
] |
40 changes: 40 additions & 0 deletions
40
test/spec/server-discovery-and-monitoring/rs-pre-6.0/compatible_unknown.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
{ | ||
"description": "Replica set member and an unknown server", | ||
"uri": "mongodb://a,b/?replicaSet=rs", | ||
"phases": [ | ||
{ | ||
"responses": [ | ||
[ | ||
"a:27017", | ||
{ | ||
"ok": 1, | ||
"helloOk": true, | ||
"isWritablePrimary": true, | ||
"setName": "rs", | ||
"hosts": [ | ||
"a:27017", | ||
"b:27017" | ||
], | ||
"minWireVersion": 0, | ||
"maxWireVersion": 6 | ||
} | ||
] | ||
], | ||
"outcome": { | ||
"servers": { | ||
"a:27017": { | ||
"type": "RSPrimary", | ||
"setName": "rs" | ||
}, | ||
"b:27017": { | ||
"type": "Unknown" | ||
} | ||
}, | ||
"topologyType": "ReplicaSetWithPrimary", | ||
"setName": "rs", | ||
"logicalSessionTimeoutMinutes": null, | ||
"compatible": true | ||
} | ||
} | ||
] | ||
} |
34 changes: 34 additions & 0 deletions
34
test/spec/server-discovery-and-monitoring/rs-pre-6.0/compatible_unknown.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
description: "Replica set member and an unknown server" | ||
|
||
uri: "mongodb://a,b/?replicaSet=rs" | ||
|
||
phases: [ | ||
{ | ||
responses: [ | ||
["a:27017", { | ||
ok: 1, | ||
helloOk: true, | ||
isWritablePrimary: true, | ||
setName: "rs", | ||
hosts: ["a:27017", "b:27017"], | ||
minWireVersion: 0, | ||
maxWireVersion: 6 | ||
}], | ||
], | ||
outcome: { | ||
servers: { | ||
"a:27017": { | ||
type: "RSPrimary", | ||
setName: "rs" | ||
}, | ||
"b:27017": { | ||
type: "Unknown", | ||
} | ||
}, | ||
topologyType: "ReplicaSetWithPrimary", | ||
setName: "rs", | ||
logicalSessionTimeoutMinutes: null, | ||
compatible: true | ||
} | ||
} | ||
] |
42 changes: 42 additions & 0 deletions
42
test/spec/server-discovery-and-monitoring/rs-pre-6.0/discover_arbiters.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
{ | ||
"description": "Discover arbiters with directConnection URI option", | ||
"uri": "mongodb://a/?directConnection=false", | ||
"phases": [ | ||
{ | ||
"responses": [ | ||
[ | ||
"a:27017", | ||
{ | ||
"ok": 1, | ||
"helloOk": true, | ||
"isWritablePrimary": true, | ||
"hosts": [ | ||
"a:27017" | ||
], | ||
"arbiters": [ | ||
"b:27017" | ||
], | ||
"setName": "rs", | ||
"minWireVersion": 0, | ||
"maxWireVersion": 6 | ||
} | ||
] | ||
], | ||
"outcome": { | ||
"servers": { | ||
"a:27017": { | ||
"type": "RSPrimary", | ||
"setName": "rs" | ||
}, | ||
"b:27017": { | ||
"type": "Unknown", | ||
"setName": null | ||
} | ||
}, | ||
"topologyType": "ReplicaSetWithPrimary", | ||
"logicalSessionTimeoutMinutes": null, | ||
"setName": "rs" | ||
} | ||
} | ||
] | ||
} |
44 changes: 44 additions & 0 deletions
44
test/spec/server-discovery-and-monitoring/rs-pre-6.0/discover_arbiters.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
description: "Discover arbiters with directConnection URI option" | ||
|
||
uri: "mongodb://a/?directConnection=false" | ||
|
||
phases: [ | ||
|
||
{ | ||
responses: [ | ||
|
||
["a:27017", { | ||
|
||
ok: 1, | ||
helloOk: true, | ||
isWritablePrimary: true, | ||
hosts: ["a:27017"], | ||
arbiters: ["b:27017"], | ||
setName: "rs", | ||
minWireVersion: 0, | ||
maxWireVersion: 6 | ||
}] | ||
], | ||
|
||
outcome: { | ||
|
||
servers: { | ||
|
||
"a:27017": { | ||
|
||
type: "RSPrimary", | ||
setName: "rs" | ||
}, | ||
|
||
"b:27017": { | ||
|
||
type: "Unknown", | ||
setName: | ||
} | ||
}, | ||
topologyType: "ReplicaSetWithPrimary", | ||
logicalSessionTimeoutMinutes: null, | ||
setName: "rs" | ||
} | ||
} | ||
] |
42 changes: 42 additions & 0 deletions
42
test/spec/server-discovery-and-monitoring/rs-pre-6.0/discover_arbiters_replicaset.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
{ | ||
"description": "Discover arbiters with replicaSet URI option", | ||
"uri": "mongodb://a/?replicaSet=rs", | ||
"phases": [ | ||
{ | ||
"responses": [ | ||
[ | ||
"a:27017", | ||
{ | ||
"ok": 1, | ||
"helloOk": true, | ||
"isWritablePrimary": true, | ||
"hosts": [ | ||
"a:27017" | ||
], | ||
"arbiters": [ | ||
"b:27017" | ||
], | ||
"setName": "rs", | ||
"minWireVersion": 0, | ||
"maxWireVersion": 6 | ||
} | ||
] | ||
], | ||
"outcome": { | ||
"servers": { | ||
"a:27017": { | ||
"type": "RSPrimary", | ||
"setName": "rs" | ||
}, | ||
"b:27017": { | ||
"type": "Unknown", | ||
"setName": null | ||
} | ||
}, | ||
"topologyType": "ReplicaSetWithPrimary", | ||
"logicalSessionTimeoutMinutes": null, | ||
"setName": "rs" | ||
} | ||
} | ||
] | ||
} |
Oops, something went wrong.