diff options
author | jannaerin <golden.janna@gmail.com> | 2020-04-21 13:51:15 -0400 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-04-24 16:10:48 +0000 |
commit | 76823e76d597b52e66539580474c93be02fe2c6e (patch) | |
tree | bf95197be18b9b677adda6aa4c79bbe851a17511 /src/mongo/client/sdam/json_tests/sdam_tests/sharded/mongos_disconnect.json | |
parent | 9ccfe0715fd23452c285471322529da8adec86e2 (diff) | |
download | mongo-76823e76d597b52e66539580474c93be02fe2c6e.tar.gz |
SERVER-43333 Ingest drivers server selection tests
Diffstat (limited to 'src/mongo/client/sdam/json_tests/sdam_tests/sharded/mongos_disconnect.json')
-rw-r--r-- | src/mongo/client/sdam/json_tests/sdam_tests/sharded/mongos_disconnect.json | 97 |
1 files changed, 97 insertions, 0 deletions
diff --git a/src/mongo/client/sdam/json_tests/sdam_tests/sharded/mongos_disconnect.json b/src/mongo/client/sdam/json_tests/sdam_tests/sharded/mongos_disconnect.json new file mode 100644 index 00000000000..04015694a8d --- /dev/null +++ b/src/mongo/client/sdam/json_tests/sdam_tests/sharded/mongos_disconnect.json @@ -0,0 +1,97 @@ +{ + "description": "Mongos disconnect", + "uri": "mongodb://a,b", + "phases": [ + { + "responses": [ + [ + "a:27017", + { + "ok": 1, + "ismaster": true, + "msg": "isdbgrid", + "minWireVersion": 0, + "maxWireVersion": 6 + } + ], + [ + "b:27017", + { + "ok": 1, + "ismaster": true, + "msg": "isdbgrid", + "minWireVersion": 0, + "maxWireVersion": 6 + } + ] + ], + "outcome": { + "servers": { + "a:27017": { + "type": "Mongos", + "setName": null + }, + "b:27017": { + "type": "Mongos", + "setName": null + } + }, + "topologyType": "Sharded", + "logicalSessionTimeoutMinutes": null, + "setName": null + } + }, + { + "responses": [ + [ + "a:27017", + {} + ] + ], + "outcome": { + "servers": { + "a:27017": { + "type": "Unknown", + "setName": null + }, + "b:27017": { + "type": "Mongos", + "setName": null + } + }, + "topologyType": "Sharded", + "logicalSessionTimeoutMinutes": null, + "setName": null + } + }, + { + "responses": [ + [ + "a:27017", + { + "ok": 1, + "ismaster": true, + "msg": "isdbgrid", + "minWireVersion": 0, + "maxWireVersion": 6 + } + ] + ], + "outcome": { + "servers": { + "a:27017": { + "type": "Mongos", + "setName": null + }, + "b:27017": { + "type": "Mongos", + "setName": null + } + }, + "topologyType": "Sharded", + "logicalSessionTimeoutMinutes": null, + "setName": null + } + } + ] +} |