Resync JSON tests from specs repo

This commit is contained in:
A. Jesse Jiryu Davis 2017-08-22 15:31:05 -04:00
parent cbe3e3b9ab
commit ece1321dbb
107 changed files with 2402 additions and 1658 deletions

View File

@ -65,7 +65,7 @@
{
"command_succeeded_event": {
"reply": {
"ok": 1.0,
"ok": 1,
"n": 1
},
"command_name": "insert"
@ -98,7 +98,7 @@
{
"command_succeeded_event": {
"reply": {
"ok": 1.0,
"ok": 1,
"n": 1
},
"command_name": "update"
@ -108,6 +108,7 @@
},
{
"description": "A successful unordered bulk write with an unacknowledged write concern",
"comment": "On a 2.4 server, no GLE is sent and requires a client-side manufactured reply",
"operation": {
"name": "bulkWrite",
"arguments": {
@ -150,7 +151,7 @@
{
"command_succeeded_event": {
"reply": {
"ok": 1.0
"ok": 1
},
"command_name": "insert"
}
@ -158,4 +159,4 @@
]
}
]
}
}

View File

@ -34,7 +34,7 @@
{
"command_succeeded_event": {
"reply": {
"ok": 1.0,
"ok": 1,
"n": 1
},
"command_name": "count"
@ -101,7 +101,7 @@
{
"command_succeeded_event": {
"reply": {
"ok": 1.0,
"ok": 1,
"n": 1
},
"command_name": "count"

View File

@ -52,7 +52,7 @@
{
"command_succeeded_event": {
"reply": {
"ok": 1.0,
"ok": 1,
"n": 2
},
"command_name": "delete"
@ -96,7 +96,7 @@
{
"command_succeeded_event": {
"reply": {
"ok": 1.0,
"ok": 1,
"n": 0,
"writeErrors": [
{

View File

@ -52,7 +52,7 @@
{
"command_succeeded_event": {
"reply": {
"ok": 1.0,
"ok": 1,
"n": 1
},
"command_name": "delete"
@ -96,7 +96,7 @@
{
"command_succeeded_event": {
"reply": {
"ok": 1.0,
"ok": 1,
"n": 0,
"writeErrors": [
{

View File

@ -86,7 +86,9 @@
"sort": {
"_id": 1
},
"skip": 2,
"skip": {
"$numberLong": "2"
},
"modifiers": {
"$comment": "test",
"$hint": {
@ -119,7 +121,9 @@
"sort": {
"_id": 1
},
"skip": 2,
"skip": {
"$numberLong": "2"
},
"comment": "test",
"hint": {
"_id": 1
@ -179,7 +183,9 @@
"sort": {
"_id": 1
},
"batchSize": 3
"batchSize": {
"$numberLong": "3"
}
}
},
"expectations": [
@ -195,7 +201,9 @@
"sort": {
"_id": 1
},
"batchSize": 3
"batchSize": {
"$numberLong": "3"
}
},
"command_name": "find",
"database_name": "command-monitoring-tests"
@ -236,7 +244,9 @@
"$numberLong": "42"
},
"collection": "test",
"batchSize": 3
"batchSize": {
"$numberLong": "3"
}
},
"command_name": "getMore",
"database_name": "command-monitoring-tests"
@ -282,8 +292,12 @@
"sort": {
"_id": 1
},
"batchSize": 3,
"limit": 4
"batchSize": {
"$numberLong": "3"
},
"limit": {
"$numberLong": "4"
}
}
},
"expectations": [
@ -299,8 +313,12 @@
"sort": {
"_id": 1
},
"batchSize": 3,
"limit": 4
"batchSize": {
"$numberLong": "3"
},
"limit": {
"$numberLong": "4"
}
},
"command_name": "find",
"database_name": "command-monitoring-tests"
@ -341,7 +359,9 @@
"$numberLong": "42"
},
"collection": "test",
"batchSize": 1
"batchSize": {
"$numberLong": "1"
}
},
"command_name": "getMore",
"database_name": "command-monitoring-tests"
@ -399,7 +419,9 @@
{
"description": "A successful find event with a getmore and the server kills the cursor",
"ignore_if_server_version_less_than": "3.1",
"ignore_if_topology_type" : ["sharded"],
"ignore_if_topology_type": [
"sharded"
],
"operation": {
"name": "find",
"arguments": {
@ -411,8 +433,12 @@
"sort": {
"_id": 1
},
"batchSize": 3,
"limit": 4
"batchSize": {
"$numberLong": "3"
},
"limit": {
"$numberLong": "4"
}
}
},
"expectations": [
@ -428,8 +454,12 @@
"sort": {
"_id": 1
},
"batchSize": 3,
"limit": 4
"batchSize": {
"$numberLong": "3"
},
"limit": {
"$numberLong": "4"
}
},
"command_name": "find",
"database_name": "command-monitoring-tests"
@ -470,7 +500,9 @@
"$numberLong": "42"
},
"collection": "test",
"batchSize": 1
"batchSize": {
"$numberLong": "1"
}
},
"command_name": "getMore",
"database_name": "command-monitoring-tests"

View File

@ -41,7 +41,7 @@
{
"command_succeeded_event": {
"reply": {
"ok": 1.0,
"ok": 1,
"n": 1
},
"command_name": "insert"
@ -82,7 +82,7 @@
{
"command_succeeded_event": {
"reply": {
"ok": 1.0,
"ok": 1,
"n": 0,
"writeErrors": [
{
@ -131,7 +131,7 @@
{
"command_succeeded_event": {
"reply": {
"ok": 1.0,
"ok": 1,
"n": 1
},
"command_name": "insert"

View File

@ -39,7 +39,7 @@
{
"command_succeeded_event": {
"reply": {
"ok": 1.0,
"ok": 1,
"n": 1
},
"command_name": "insert"
@ -78,7 +78,7 @@
{
"command_succeeded_event": {
"reply": {
"ok": 1.0,
"ok": 1,
"n": 0,
"writeErrors": [
{

View File

@ -63,7 +63,7 @@
{
"command_succeeded_event": {
"reply": {
"ok": 1.0,
"ok": 1,
"n": 2
},
"command_name": "update"
@ -118,7 +118,7 @@
{
"command_succeeded_event": {
"reply": {
"ok": 1.0,
"ok": 1,
"n": 0,
"writeErrors": [
{

View File

@ -63,7 +63,7 @@
{
"command_succeeded_event": {
"reply": {
"ok": 1.0,
"ok": 1,
"n": 1
},
"command_name": "update"
@ -115,7 +115,7 @@
{
"command_succeeded_event": {
"reply": {
"ok": 1.0,
"ok": 1,
"n": 1,
"upserted": [
{
@ -176,7 +176,7 @@
{
"command_succeeded_event": {
"reply": {
"ok": 1.0,
"ok": 1,
"n": 0,
"writeErrors": [
{

View File

@ -1,256 +1,256 @@
{
"tests": [
{
"auth": null,
"description": "Empty string",
"hosts": null,
"options": null,
"uri": "",
"valid": false,
"warning": null
},
{
"auth": null,
"description": "Invalid scheme",
"hosts": null,
"options": null,
"uri": "mongo://localhost:27017",
"valid": false,
"warning": null
},
{
"auth": null,
"description": "Missing host",
"hosts": null,
"options": null,
"uri": "mongodb://",
"valid": false,
"warning": null
},
{
"auth": null,
"description": "Double colon in host identifier",
"hosts": null,
"options": null,
"uri": "mongodb://localhost::27017",
"valid": false,
"warning": null
},
{
"auth": null,
"description": "Double colon in host identifier and trailing slash",
"hosts": null,
"options": null,
"uri": "mongodb://localhost::27017/",
"valid": false,
"warning": null
},
{
"auth": null,
"description": "Double colon in host identifier with missing host and port",
"hosts": null,
"options": null,
"uri": "mongodb://::",
"valid": false,
"warning": null
},
{
"auth": null,
"description": "Double colon in host identifier with missing port",
"hosts": null,
"options": null,
"uri": "mongodb://localhost,localhost::",
"valid": false,
"warning": null
},
{
"auth": null,
"description": "Double colon in host identifier and second host",
"hosts": null,
"options": null,
"uri": "mongodb://localhost::27017,abc",
"valid": false,
"warning": null
},
{
"auth": null,
"description": "Invalid port (negative number) with hostname",
"hosts": null,
"options": null,
"uri": "mongodb://localhost:-1",
"valid": false,
"warning": null
},
{
"auth": null,
"description": "Invalid port (zero) with hostname",
"hosts": null,
"options": null,
"uri": "mongodb://localhost:0/",
"valid": false,
"warning": null
},
{
"auth": null,
"description": "Invalid port (positive number) with hostname",
"hosts": null,
"options": null,
"uri": "mongodb://localhost:65536",
"valid": false,
"warning": null
},
{
"auth": null,
"description": "Invalid port (positive number) with hostname and trailing slash",
"hosts": null,
"options": null,
"uri": "mongodb://localhost:65536/",
"valid": false,
"warning": null
},
{
"auth": null,
"description": "Invalid port (non-numeric string) with hostname",
"hosts": null,
"options": null,
"uri": "mongodb://localhost:foo",
"valid": false,
"warning": null
},
{
"auth": null,
"description": "Invalid port (negative number) with IP literal",
"hosts": null,
"options": null,
"uri": "mongodb://[::1]:-1",
"valid": false,
"warning": null
},
{
"auth": null,
"description": "Invalid port (zero) with IP literal",
"hosts": null,
"options": null,
"uri": "mongodb://[::1]:0/",
"valid": false,
"warning": null
},
{
"auth": null,
"description": "Invalid port (positive number) with IP literal",
"hosts": null,
"options": null,
"uri": "mongodb://[::1]:65536",
"valid": false,
"warning": null
},
{
"auth": null,
"description": "Invalid port (positive number) with IP literal and trailing slash",
"hosts": null,
"options": null,
"uri": "mongodb://[::1]:65536/",
"valid": false,
"warning": null
},
{
"auth": null,
"description": "Invalid port (non-numeric string) with IP literal",
"hosts": null,
"options": null,
"uri": "mongodb://[::1]:foo",
"valid": false,
"warning": null
},
{
"auth": null,
"description": "Missing delimiting slash between hosts and options",
"hosts": null,
"options": null,
"uri": "mongodb://example.com?w=1",
"valid": false,
"warning": null
},
{
"auth": null,
"description": "Incomplete key value pair for option",
"hosts": null,
"options": null,
"uri": "mongodb://example.com/?w",
"valid": false,
"warning": null
},
{
"auth": null,
"description": "Username with password containing an unescaped colon",
"hosts": null,
"options": null,
"uri": "mongodb://alice:foo:bar@127.0.0.1",
"valid": false,
"warning": null
},
{
"auth": null,
"description": "Username with password containing an unescaped colon",
"hosts": null,
"options": null,
"uri": "mongodb://alice:foo:bar@127.0.0.1",
"valid": false,
"warning": null
},
{
"auth": null,
"description": "Username containing an unescaped at-sign",
"hosts": null,
"options": null,
"uri": "mongodb://alice@@127.0.0.1",
"valid": false,
"warning": null
},
{
"auth": null,
"description": "Username with password containing an unescaped at-sign",
"hosts": null,
"options": null,
"uri": "mongodb://alice@foo:bar@127.0.0.1",
"valid": false,
"warning": null
},
{
"auth": null,
"description": "Username containing an unescaped slash",
"hosts": null,
"options": null,
"uri": "mongodb://alice/@localhost/db",
"valid": false,
"warning": null
},
{
"auth": null,
"description": "Username containing unescaped slash with password",
"hosts": null,
"options": null,
"uri": "mongodb://alice/bob:foo@localhost/db",
"valid": false,
"warning": null
},
{
"auth": null,
"description": "Username with password containing an unescaped slash",
"hosts": null,
"options": null,
"uri": "mongodb://alice:foo/bar@localhost/db",
"valid": false,
"warning": null
},
{
"auth": null,
"description": "Host with unescaped slash",
"hosts": null,
"options": null,
"uri": "mongodb:///tmp/mongodb-27017.sock/",
"valid": false,
"warning": null
}
]
"tests": [
{
"description": "Empty string",
"uri": "",
"valid": false,
"warning": null,
"hosts": null,
"auth": null,
"options": null
},
{
"description": "Invalid scheme",
"uri": "mongo://localhost:27017",
"valid": false,
"warning": null,
"hosts": null,
"auth": null,
"options": null
},
{
"description": "Missing host",
"uri": "mongodb://",
"valid": false,
"warning": null,
"hosts": null,
"auth": null,
"options": null
},
{
"description": "Double colon in host identifier",
"uri": "mongodb://localhost::27017",
"valid": false,
"warning": null,
"hosts": null,
"auth": null,
"options": null
},
{
"description": "Double colon in host identifier and trailing slash",
"uri": "mongodb://localhost::27017/",
"valid": false,
"warning": null,
"hosts": null,
"auth": null,
"options": null
},
{
"description": "Double colon in host identifier with missing host and port",
"uri": "mongodb://::",
"valid": false,
"warning": null,
"hosts": null,
"auth": null,
"options": null
},
{
"description": "Double colon in host identifier with missing port",
"uri": "mongodb://localhost,localhost::",
"valid": false,
"warning": null,
"hosts": null,
"auth": null,
"options": null
},
{
"description": "Double colon in host identifier and second host",
"uri": "mongodb://localhost::27017,abc",
"valid": false,
"warning": null,
"hosts": null,
"auth": null,
"options": null
},
{
"description": "Invalid port (negative number) with hostname",
"uri": "mongodb://localhost:-1",
"valid": false,
"warning": null,
"hosts": null,
"auth": null,
"options": null
},
{
"description": "Invalid port (zero) with hostname",
"uri": "mongodb://localhost:0/",
"valid": false,
"warning": null,
"hosts": null,
"auth": null,
"options": null
},
{
"description": "Invalid port (positive number) with hostname",
"uri": "mongodb://localhost:65536",
"valid": false,
"warning": null,
"hosts": null,
"auth": null,
"options": null
},
{
"description": "Invalid port (positive number) with hostname and trailing slash",
"uri": "mongodb://localhost:65536/",
"valid": false,
"warning": null,
"hosts": null,
"auth": null,
"options": null
},
{
"description": "Invalid port (non-numeric string) with hostname",
"uri": "mongodb://localhost:foo",
"valid": false,
"warning": null,
"hosts": null,
"auth": null,
"options": null
},
{
"description": "Invalid port (negative number) with IP literal",
"uri": "mongodb://[::1]:-1",
"valid": false,
"warning": null,
"hosts": null,
"auth": null,
"options": null
},
{
"description": "Invalid port (zero) with IP literal",
"uri": "mongodb://[::1]:0/",
"valid": false,
"warning": null,
"hosts": null,
"auth": null,
"options": null
},
{
"description": "Invalid port (positive number) with IP literal",
"uri": "mongodb://[::1]:65536",
"valid": false,
"warning": null,
"hosts": null,
"auth": null,
"options": null
},
{
"description": "Invalid port (positive number) with IP literal and trailing slash",
"uri": "mongodb://[::1]:65536/",
"valid": false,
"warning": null,
"hosts": null,
"auth": null,
"options": null
},
{
"description": "Invalid port (non-numeric string) with IP literal",
"uri": "mongodb://[::1]:foo",
"valid": false,
"warning": null,
"hosts": null,
"auth": null,
"options": null
},
{
"description": "Missing delimiting slash between hosts and options",
"uri": "mongodb://example.com?w=1",
"valid": false,
"warning": null,
"hosts": null,
"auth": null,
"options": null
},
{
"description": "Incomplete key value pair for option",
"uri": "mongodb://example.com/?w",
"valid": false,
"warning": null,
"hosts": null,
"auth": null,
"options": null
},
{
"description": "Username with password containing an unescaped colon",
"uri": "mongodb://alice:foo:bar@127.0.0.1",
"valid": false,
"warning": null,
"hosts": null,
"auth": null,
"options": null
},
{
"description": "Username with password containing an unescaped colon",
"uri": "mongodb://alice:foo:bar@127.0.0.1",
"valid": false,
"warning": null,
"hosts": null,
"auth": null,
"options": null
},
{
"description": "Username containing an unescaped at-sign",
"uri": "mongodb://alice@@127.0.0.1",
"valid": false,
"warning": null,
"hosts": null,
"auth": null,
"options": null
},
{
"description": "Username with password containing an unescaped at-sign",
"uri": "mongodb://alice@foo:bar@127.0.0.1",
"valid": false,
"warning": null,
"hosts": null,
"auth": null,
"options": null
},
{
"description": "Username containing an unescaped slash",
"uri": "mongodb://alice/@localhost/db",
"valid": false,
"warning": null,
"hosts": null,
"auth": null,
"options": null
},
{
"description": "Username containing unescaped slash with password",
"uri": "mongodb://alice/bob:foo@localhost/db",
"valid": false,
"warning": null,
"hosts": null,
"auth": null,
"options": null
},
{
"description": "Username with password containing an unescaped slash",
"uri": "mongodb://alice:foo/bar@localhost/db",
"valid": false,
"warning": null,
"hosts": null,
"auth": null,
"options": null
},
{
"description": "Host with unescaped slash",
"uri": "mongodb:///tmp/mongodb-27017.sock/",
"valid": false,
"warning": null,
"hosts": null,
"auth": null,
"options": null
}
]
}

View File

@ -1,311 +1,311 @@
{
"tests": [
"tests": [
{
"description": "User info for single IPv4 host without database",
"uri": "mongodb://alice:foo@127.0.0.1",
"valid": true,
"warning": false,
"hosts": [
{
"auth": {
"db": null,
"password": "foo",
"username": "alice"
},
"description": "User info for single IPv4 host without database",
"hosts": [
{
"host": "127.0.0.1",
"port": null,
"type": "ipv4"
}
],
"options": null,
"uri": "mongodb://alice:foo@127.0.0.1",
"valid": true,
"warning": false
},
{
"auth": {
"db": "test",
"password": "foo",
"username": "alice"
},
"description": "User info for single IPv4 host with database",
"hosts": [
{
"host": "127.0.0.1",
"port": null,
"type": "ipv4"
}
],
"options": null,
"uri": "mongodb://alice:foo@127.0.0.1/test",
"valid": true,
"warning": false
},
{
"auth": {
"db": null,
"password": "bar",
"username": "bob"
},
"description": "User info for single IP literal host without database",
"hosts": [
{
"host": "::1",
"port": 27018,
"type": "ip_literal"
}
],
"options": null,
"uri": "mongodb://bob:bar@[::1]:27018",
"valid": true,
"warning": false
},
{
"auth": {
"db": "admin",
"password": "bar",
"username": "bob"
},
"description": "User info for single IP literal host with database",
"hosts": [
{
"host": "::1",
"port": 27018,
"type": "ip_literal"
}
],
"options": null,
"uri": "mongodb://bob:bar@[::1]:27018/admin",
"valid": true,
"warning": false
},
{
"auth": {
"db": null,
"password": "baz",
"username": "eve"
},
"description": "User info for single hostname without database",
"hosts": [
{
"host": "example.com",
"port": null,
"type": "hostname"
}
],
"options": null,
"uri": "mongodb://eve:baz@example.com",
"valid": true,
"warning": false
},
{
"auth": {
"db": "db2",
"password": "baz",
"username": "eve"
},
"description": "User info for single hostname with database",
"hosts": [
{
"host": "example.com",
"port": null,
"type": "hostname"
}
],
"options": null,
"uri": "mongodb://eve:baz@example.com/db2",
"valid": true,
"warning": false
},
{
"auth": {
"db": null,
"password": "secret",
"username": "alice"
},
"description": "User info for multiple hosts without database",
"hosts": [
{
"host": "127.0.0.1",
"port": null,
"type": "ipv4"
},
{
"host": "example.com",
"port": 27018,
"type": "hostname"
}
],
"options": null,
"uri": "mongodb://alice:secret@127.0.0.1,example.com:27018",
"valid": true,
"warning": false
},
{
"auth": {
"db": "admin",
"password": "secret",
"username": "alice"
},
"description": "User info for multiple hosts with database",
"hosts": [
{
"host": "example.com",
"port": null,
"type": "hostname"
},
{
"host": "::1",
"port": 27019,
"type": "ip_literal"
}
],
"options": null,
"uri": "mongodb://alice:secret@example.com,[::1]:27019/admin",
"valid": true,
"warning": false
},
{
"auth": {
"db": null,
"password": null,
"username": "alice"
},
"description": "Username without password",
"hosts": [
{
"host": "127.0.0.1",
"port": null,
"type": "ipv4"
}
],
"options": null,
"uri": "mongodb://alice@127.0.0.1",
"valid": true,
"warning": false
},
{
"auth": {
"db": null,
"password": "",
"username": "alice"
},
"description": "Username with empty password",
"hosts": [
{
"host": "127.0.0.1",
"port": null,
"type": "ipv4"
}
],
"options": null,
"uri": "mongodb://alice:@127.0.0.1",
"valid": true,
"warning": false
},
{
"auth": {
"db": "my=db",
"password": null,
"username": "@l:ce/="
},
"description": "Escaped username and database without password",
"hosts": [
{
"host": "example.com",
"port": null,
"type": "hostname"
}
],
"options": null,
"uri": "mongodb://%40l%3Ace%2F%3D@example.com/my%3Ddb",
"valid": true,
"warning": false
},
{
"auth": {
"db": "admin?",
"password": "f:zzb@z/z=",
"username": "$am"
},
"description": "Escaped user info and database (MONGODB-CR)",
"hosts": [
{
"host": "127.0.0.1",
"port": null,
"type": "ipv4"
}
],
"options": {
"authmechanism": "MONGODB-CR"
},
"uri": "mongodb://%24am:f%3Azzb%40z%2Fz%3D@127.0.0.1/admin%3F?authMechanism=MONGODB-CR",
"valid": true,
"warning": false
},
{
"auth": {
"db": null,
"password": null,
"username": "CN=myName,OU=myOrgUnit,O=myOrg,L=myLocality,ST=myState,C=myCountry"
},
"description": "Escaped username (MONGODB-X509)",
"hosts": [
{
"host": "localhost",
"port": null,
"type": "hostname"
}
],
"options": {
"authmechanism": "MONGODB-X509"
},
"uri": "mongodb://CN%3DmyName%2COU%3DmyOrgUnit%2CO%3DmyOrg%2CL%3DmyLocality%2CST%3DmyState%2CC%3DmyCountry@localhost/?authMechanism=MONGODB-X509",
"valid": true,
"warning": false
},
{
"auth": {
"db": null,
"password": "secret",
"username": "user@EXAMPLE.COM"
},
"description": "Escaped username (GSSAPI)",
"hosts": [
{
"host": "localhost",
"port": null,
"type": "hostname"
}
],
"options": {
"authmechanism": "GSSAPI",
"authmechanismproperties": {
"CANONICALIZE_HOST_NAME": true,
"SERVICE_NAME": "other"
}
},
"uri": "mongodb://user%40EXAMPLE.COM:secret@localhost/?authMechanismProperties=SERVICE_NAME:other,CANONICALIZE_HOST_NAME:true&authMechanism=GSSAPI",
"valid": true,
"warning": false
},
{
"auth": {
"db": "admin",
"password": "secret",
"username": "alice"
},
"description": "At-signs in options aren't part of the userinfo",
"hosts": [
{
"host": "example.com",
"port": null,
"type": "hostname"
}
],
"options": {
"replicaset": "my@replicaset"
},
"uri": "mongodb://alice:secret@example.com/admin?replicaset=my@replicaset",
"valid": true,
"warning": false
"type": "ipv4",
"host": "127.0.0.1",
"port": null
}
]
],
"auth": {
"username": "alice",
"password": "foo",
"db": null
},
"options": null
},
{
"description": "User info for single IPv4 host with database",
"uri": "mongodb://alice:foo@127.0.0.1/test",
"valid": true,
"warning": false,
"hosts": [
{
"type": "ipv4",
"host": "127.0.0.1",
"port": null
}
],
"auth": {
"username": "alice",
"password": "foo",
"db": "test"
},
"options": null
},
{
"description": "User info for single IP literal host without database",
"uri": "mongodb://bob:bar@[::1]:27018",
"valid": true,
"warning": false,
"hosts": [
{
"type": "ip_literal",
"host": "::1",
"port": 27018
}
],
"auth": {
"username": "bob",
"password": "bar",
"db": null
},
"options": null
},
{
"description": "User info for single IP literal host with database",
"uri": "mongodb://bob:bar@[::1]:27018/admin",
"valid": true,
"warning": false,
"hosts": [
{
"type": "ip_literal",
"host": "::1",
"port": 27018
}
],
"auth": {
"username": "bob",
"password": "bar",
"db": "admin"
},
"options": null
},
{
"description": "User info for single hostname without database",
"uri": "mongodb://eve:baz@example.com",
"valid": true,
"warning": false,
"hosts": [
{
"type": "hostname",
"host": "example.com",
"port": null
}
],
"auth": {
"username": "eve",
"password": "baz",
"db": null
},
"options": null
},
{
"description": "User info for single hostname with database",
"uri": "mongodb://eve:baz@example.com/db2",
"valid": true,
"warning": false,
"hosts": [
{
"type": "hostname",
"host": "example.com",
"port": null
}
],
"auth": {
"username": "eve",
"password": "baz",
"db": "db2"
},
"options": null
},
{
"description": "User info for multiple hosts without database",
"uri": "mongodb://alice:secret@127.0.0.1,example.com:27018",
"valid": true,
"warning": false,
"hosts": [
{
"type": "ipv4",
"host": "127.0.0.1",
"port": null
},
{
"type": "hostname",
"host": "example.com",
"port": 27018
}
],
"auth": {
"username": "alice",
"password": "secret",
"db": null
},
"options": null
},
{
"description": "User info for multiple hosts with database",
"uri": "mongodb://alice:secret@example.com,[::1]:27019/admin",
"valid": true,
"warning": false,
"hosts": [
{
"type": "hostname",
"host": "example.com",
"port": null
},
{
"type": "ip_literal",
"host": "::1",
"port": 27019
}
],
"auth": {
"username": "alice",
"password": "secret",
"db": "admin"
},
"options": null
},
{
"description": "Username without password",
"uri": "mongodb://alice@127.0.0.1",
"valid": true,
"warning": false,
"hosts": [
{
"type": "ipv4",
"host": "127.0.0.1",
"port": null
}
],
"auth": {
"username": "alice",
"password": null,
"db": null
},
"options": null
},
{
"description": "Username with empty password",
"uri": "mongodb://alice:@127.0.0.1",
"valid": true,
"warning": false,
"hosts": [
{
"type": "ipv4",
"host": "127.0.0.1",
"port": null
}
],
"auth": {
"username": "alice",
"password": "",
"db": null
},
"options": null
},
{
"description": "Escaped username and database without password",
"uri": "mongodb://%40l%3Ace%2F%3D@example.com/my%3Ddb",
"valid": true,
"warning": false,
"hosts": [
{
"type": "hostname",
"host": "example.com",
"port": null
}
],
"auth": {
"username": "@l:ce/=",
"password": null,
"db": "my=db"
},
"options": null
},
{
"description": "Escaped user info and database (MONGODB-CR)",
"uri": "mongodb://%24am:f%3Azzb%40z%2Fz%3D@127.0.0.1/admin%3F?authMechanism=MONGODB-CR",
"valid": true,
"warning": false,
"hosts": [
{
"type": "ipv4",
"host": "127.0.0.1",
"port": null
}
],
"auth": {
"username": "$am",
"password": "f:zzb@z/z=",
"db": "admin?"
},
"options": {
"authmechanism": "MONGODB-CR"
}
},
{
"description": "Escaped username (MONGODB-X509)",
"uri": "mongodb://CN%3DmyName%2COU%3DmyOrgUnit%2CO%3DmyOrg%2CL%3DmyLocality%2CST%3DmyState%2CC%3DmyCountry@localhost/?authMechanism=MONGODB-X509",
"valid": true,
"warning": false,
"hosts": [
{
"type": "hostname",
"host": "localhost",
"port": null
}
],
"auth": {
"username": "CN=myName,OU=myOrgUnit,O=myOrg,L=myLocality,ST=myState,C=myCountry",
"password": null,
"db": null
},
"options": {
"authmechanism": "MONGODB-X509"
}
},
{
"description": "Escaped username (GSSAPI)",
"uri": "mongodb://user%40EXAMPLE.COM:secret@localhost/?authMechanismProperties=SERVICE_NAME:other,CANONICALIZE_HOST_NAME:true&authMechanism=GSSAPI",
"valid": true,
"warning": false,
"hosts": [
{
"type": "hostname",
"host": "localhost",
"port": null
}
],
"auth": {
"username": "user@EXAMPLE.COM",
"password": "secret",
"db": null
},
"options": {
"authmechanism": "GSSAPI",
"authmechanismproperties": {
"SERVICE_NAME": "other",
"CANONICALIZE_HOST_NAME": true
}
}
},
{
"description": "At-signs in options aren't part of the userinfo",
"uri": "mongodb://alice:secret@example.com/admin?replicaset=my@replicaset",
"valid": true,
"warning": false,
"hosts": [
{
"type": "hostname",
"host": "example.com",
"port": null
}
],
"auth": {
"username": "alice",
"password": "secret",
"db": "admin"
},
"options": {
"replicaset": "my@replicaset"
}
}
]
}

View File

@ -1,100 +1,100 @@
{
"tests": [
"tests": [
{
"description": "Multiple Unix domain sockets and auth DB resembling a socket (relative path)",
"uri": "mongodb://rel%2Fmongodb-27017.sock,rel%2Fmongodb-27018.sock/admin.sock",
"valid": true,
"warning": false,
"hosts": [
{
"auth": {
"db": "admin.sock",
"password": null,
"username": null
},
"description": "Multiple Unix domain sockets and auth DB resembling a socket (relative path)",
"hosts": [
{
"host": "rel/mongodb-27017.sock",
"port": null,
"type": "unix"
},
{
"host": "rel/mongodb-27018.sock",
"port": null,
"type": "unix"
}
],
"options": null,
"uri": "mongodb://rel%2Fmongodb-27017.sock,rel%2Fmongodb-27018.sock/admin.sock",
"valid": true,
"warning": false
},
"type": "unix",
"host": "rel/mongodb-27017.sock",
"port": null
},
{
"auth": {
"db": "admin.shoe",
"password": null,
"username": null
},
"description": "Multiple Unix domain sockets with auth DB resembling a path (relative path)",
"hosts": [
{
"host": "rel/mongodb-27017.sock",
"port": null,
"type": "unix"
},
{
"host": "rel/mongodb-27018.sock",
"port": null,
"type": "unix"
}
],
"options": null,
"uri": "mongodb://rel%2Fmongodb-27017.sock,rel%2Fmongodb-27018.sock/admin.shoe",
"valid": true,
"warning": false
},
{
"auth": {
"db": "admin.sock",
"password": null,
"username": null
},
"description": "Multiple Unix domain sockets and auth DB resembling a socket (absolute path)",
"hosts": [
{
"host": "/tmp/mongodb-27017.sock",
"port": null,
"type": "unix"
},
{
"host": "/tmp/mongodb-27018.sock",
"port": null,
"type": "unix"
}
],
"options": null,
"uri": "mongodb://%2Ftmp%2Fmongodb-27017.sock,%2Ftmp%2Fmongodb-27018.sock/admin.sock",
"valid": true,
"warning": false
},
{
"auth": {
"db": "admin.shoe",
"password": null,
"username": null
},
"description": "Multiple Unix domain sockets with auth DB resembling a path (absolute path)",
"hosts": [
{
"host": "/tmp/mongodb-27017.sock",
"port": null,
"type": "unix"
},
{
"host": "/tmp/mongodb-27018.sock",
"port": null,
"type": "unix"
}
],
"options": null,
"uri": "mongodb://%2Ftmp%2Fmongodb-27017.sock,%2Ftmp%2Fmongodb-27018.sock/admin.shoe",
"valid": true,
"warning": false
"type": "unix",
"host": "rel/mongodb-27018.sock",
"port": null
}
]
],
"auth": {
"username": null,
"password": null,
"db": "admin.sock"
},
"options": null
},
{
"description": "Multiple Unix domain sockets with auth DB resembling a path (relative path)",
"uri": "mongodb://rel%2Fmongodb-27017.sock,rel%2Fmongodb-27018.sock/admin.shoe",
"valid": true,
"warning": false,
"hosts": [
{
"type": "unix",
"host": "rel/mongodb-27017.sock",
"port": null
},
{
"type": "unix",
"host": "rel/mongodb-27018.sock",
"port": null
}
],
"auth": {
"username": null,
"password": null,
"db": "admin.shoe"
},
"options": null
},
{
"description": "Multiple Unix domain sockets and auth DB resembling a socket (absolute path)",
"uri": "mongodb://%2Ftmp%2Fmongodb-27017.sock,%2Ftmp%2Fmongodb-27018.sock/admin.sock",
"valid": true,
"warning": false,
"hosts": [
{
"type": "unix",
"host": "/tmp/mongodb-27017.sock",
"port": null
},
{
"type": "unix",
"host": "/tmp/mongodb-27018.sock",
"port": null
}
],
"auth": {
"username": null,
"password": null,
"db": "admin.sock"
},
"options": null
},
{
"description": "Multiple Unix domain sockets with auth DB resembling a path (absolute path)",
"uri": "mongodb://%2Ftmp%2Fmongodb-27017.sock,%2Ftmp%2Fmongodb-27018.sock/admin.shoe",
"valid": true,
"warning": false,
"hosts": [
{
"type": "unix",
"host": "/tmp/mongodb-27017.sock",
"port": null
},
{
"type": "unix",
"host": "/tmp/mongodb-27018.sock",
"port": null
}
],
"auth": {
"username": null,
"password": null,
"db": "admin.shoe"
},
"options": null
}
]
}

View File

@ -132,18 +132,18 @@
},
{
"description": "UTF-8 hosts",
"uri": "mongodb://b\u00fccher.example.com,uml\u00e4ut.example.com/",
"uri": "mongodb://bücher.example.com,umläut.example.com/",
"valid": true,
"warning": false,
"hosts": [
{
"type": "hostname",
"host": "b\u00fccher.example.com",
"host": "bücher.example.com",
"port": null
},
{
"type": "hostname",
"host": "uml\u00e4ut.example.com",
"host": "umläut.example.com",
"port": null
}
],

View File

@ -1,251 +1,251 @@
{
"tests": [
"tests": [
{
"description": "Unix domain socket (absolute path with trailing slash)",
"uri": "mongodb://%2Ftmp%2Fmongodb-27017.sock/",
"valid": true,
"warning": false,
"hosts": [
{
"auth": null,
"description": "Unix domain socket (absolute path with trailing slash)",
"hosts": [
{
"host": "/tmp/mongodb-27017.sock",
"port": null,
"type": "unix"
}
],
"options": null,
"uri": "mongodb://%2Ftmp%2Fmongodb-27017.sock/",
"valid": true,
"warning": false
},
{
"auth": null,
"description": "Unix domain socket (absolute path without trailing slash)",
"hosts": [
{
"host": "/tmp/mongodb-27017.sock",
"port": null,
"type": "unix"
}
],
"options": null,
"uri": "mongodb://%2Ftmp%2Fmongodb-27017.sock",
"valid": true,
"warning": false
},
{
"auth": null,
"description": "Unix domain socket (absolute path with spaces in path)",
"hosts": [
{
"host": "/tmp/ /mongodb-27017.sock",
"port": null,
"type": "unix"
}
],
"options": null,
"uri": "mongodb://%2Ftmp%2F %2Fmongodb-27017.sock",
"valid": true,
"warning": false
},
{
"auth": null,
"description": "Multiple Unix domain sockets (absolute paths)",
"hosts": [
{
"host": "/tmp/mongodb-27017.sock",
"port": null,
"type": "unix"
},
{
"host": "/tmp/mongodb-27018.sock",
"port": null,
"type": "unix"
}
],
"options": null,
"uri": "mongodb://%2Ftmp%2Fmongodb-27017.sock,%2Ftmp%2Fmongodb-27018.sock",
"valid": true,
"warning": false
},
{
"auth": null,
"description": "Multiple hosts (absolute path and ipv4)",
"hosts": [
{
"host": "127.0.0.1",
"port": 27017,
"type": "ipv4"
},
{
"host": "/tmp/mongodb-27017.sock",
"port": null,
"type": "unix"
}
],
"options": null,
"uri": "mongodb://127.0.0.1:27017,%2Ftmp%2Fmongodb-27017.sock",
"valid": true,
"warning": false
},
{
"auth": null,
"description": "Multiple hosts (absolute path and hostname resembling relative path)",
"hosts": [
{
"host": "mongodb-27017.sock",
"port": null,
"type": "hostname"
},
{
"host": "/tmp/mongodb-27018.sock",
"port": null,
"type": "unix"
}
],
"options": null,
"uri": "mongodb://mongodb-27017.sock,%2Ftmp%2Fmongodb-27018.sock",
"valid": true,
"warning": false
},
{
"auth": {
"db": "admin",
"password": "foo",
"username": "alice"
},
"description": "Unix domain socket with auth database (absolute path)",
"hosts": [
{
"host": "/tmp/mongodb-27017.sock",
"port": null,
"type": "unix"
}
],
"options": null,
"uri": "mongodb://alice:foo@%2Ftmp%2Fmongodb-27017.sock/admin",
"valid": true,
"warning": false
},
{
"auth": null,
"description": "Unix domain socket with path resembling socket file (absolute path with trailing slash)",
"hosts": [
{
"host": "/tmp/path.to.sock/mongodb-27017.sock",
"port": null,
"type": "unix"
}
],
"options": null,
"uri": "mongodb://%2Ftmp%2Fpath.to.sock%2Fmongodb-27017.sock/",
"valid": true,
"warning": false
},
{
"auth": null,
"description": "Unix domain socket with path resembling socket file (absolute path without trailing slash)",
"hosts": [
{
"host": "/tmp/path.to.sock/mongodb-27017.sock",
"port": null,
"type": "unix"
}
],
"options": null,
"uri": "mongodb://%2Ftmp%2Fpath.to.sock%2Fmongodb-27017.sock",
"valid": true,
"warning": false
},
{
"auth": {
"db": "admin",
"password": "bar",
"username": "bob"
},
"description": "Unix domain socket with path resembling socket file and auth (absolute path)",
"hosts": [
{
"host": "/tmp/path.to.sock/mongodb-27017.sock",
"port": null,
"type": "unix"
}
],
"options": null,
"uri": "mongodb://bob:bar@%2Ftmp%2Fpath.to.sock%2Fmongodb-27017.sock/admin",
"valid": true,
"warning": false
},
{
"auth": {
"db": "admin",
"password": null,
"username": null
},
"description": "Multiple Unix domain sockets and auth DB (absolute path)",
"hosts": [
{
"host": "/tmp/mongodb-27017.sock",
"port": null,
"type": "unix"
},
{
"host": "/tmp/mongodb-27018.sock",
"port": null,
"type": "unix"
}
],
"options": null,
"uri": "mongodb://%2Ftmp%2Fmongodb-27017.sock,%2Ftmp%2Fmongodb-27018.sock/admin",
"valid": true,
"warning": false
},
{
"auth": {
"db": "admin",
"password": null,
"username": null
},
"description": "Multiple Unix domain sockets with auth DB (absolute path)",
"hosts": [
{
"host": "/tmp/mongodb-27017.sock",
"port": null,
"type": "unix"
},
{
"host": "/tmp/mongodb-27018.sock",
"port": null,
"type": "unix"
}
],
"options": null,
"uri": "mongodb://%2Ftmp%2Fmongodb-27017.sock,%2Ftmp%2Fmongodb-27018.sock/admin",
"valid": true,
"warning": false
},
{
"auth": {
"db": "admin",
"password": "bar",
"username": "bob"
},
"description": "Multiple Unix domain sockets with auth and query string (absolute path)",
"hosts": [
{
"host": "/tmp/mongodb-27017.sock",
"port": null,
"type": "unix"
},
{
"host": "/tmp/mongodb-27018.sock",
"port": null,
"type": "unix"
}
],
"options": {
"w": 1
},
"uri": "mongodb://bob:bar@%2Ftmp%2Fmongodb-27017.sock,%2Ftmp%2Fmongodb-27018.sock/admin?w=1",
"valid": true,
"warning": false
"type": "unix",
"host": "/tmp/mongodb-27017.sock",
"port": null
}
]
],
"auth": null,
"options": null
},
{
"description": "Unix domain socket (absolute path without trailing slash)",
"uri": "mongodb://%2Ftmp%2Fmongodb-27017.sock",
"valid": true,
"warning": false,
"hosts": [
{
"type": "unix",
"host": "/tmp/mongodb-27017.sock",
"port": null
}
],
"auth": null,
"options": null
},
{
"description": "Unix domain socket (absolute path with spaces in path)",
"uri": "mongodb://%2Ftmp%2F %2Fmongodb-27017.sock",
"valid": true,
"warning": false,
"hosts": [
{
"type": "unix",
"host": "/tmp/ /mongodb-27017.sock",
"port": null
}
],
"auth": null,
"options": null
},
{
"description": "Multiple Unix domain sockets (absolute paths)",
"uri": "mongodb://%2Ftmp%2Fmongodb-27017.sock,%2Ftmp%2Fmongodb-27018.sock",
"valid": true,
"warning": false,
"hosts": [
{
"type": "unix",
"host": "/tmp/mongodb-27017.sock",
"port": null
},
{
"type": "unix",
"host": "/tmp/mongodb-27018.sock",
"port": null
}
],
"auth": null,
"options": null
},
{
"description": "Multiple hosts (absolute path and ipv4)",
"uri": "mongodb://127.0.0.1:27017,%2Ftmp%2Fmongodb-27017.sock",
"valid": true,
"warning": false,
"hosts": [
{
"type": "ipv4",
"host": "127.0.0.1",
"port": 27017
},
{
"type": "unix",
"host": "/tmp/mongodb-27017.sock",
"port": null
}
],
"auth": null,
"options": null
},
{
"description": "Multiple hosts (absolute path and hostname resembling relative path)",
"uri": "mongodb://mongodb-27017.sock,%2Ftmp%2Fmongodb-27018.sock",
"valid": true,
"warning": false,
"hosts": [
{
"type": "hostname",
"host": "mongodb-27017.sock",
"port": null
},
{
"type": "unix",
"host": "/tmp/mongodb-27018.sock",
"port": null
}
],
"auth": null,
"options": null
},
{
"description": "Unix domain socket with auth database (absolute path)",
"uri": "mongodb://alice:foo@%2Ftmp%2Fmongodb-27017.sock/admin",
"valid": true,
"warning": false,
"hosts": [
{
"type": "unix",
"host": "/tmp/mongodb-27017.sock",
"port": null
}
],
"auth": {
"username": "alice",
"password": "foo",
"db": "admin"
},
"options": null
},
{
"description": "Unix domain socket with path resembling socket file (absolute path with trailing slash)",
"uri": "mongodb://%2Ftmp%2Fpath.to.sock%2Fmongodb-27017.sock/",
"valid": true,
"warning": false,
"hosts": [
{
"type": "unix",
"host": "/tmp/path.to.sock/mongodb-27017.sock",
"port": null
}
],
"auth": null,
"options": null
},
{
"description": "Unix domain socket with path resembling socket file (absolute path without trailing slash)",
"uri": "mongodb://%2Ftmp%2Fpath.to.sock%2Fmongodb-27017.sock",
"valid": true,
"warning": false,
"hosts": [
{
"type": "unix",
"host": "/tmp/path.to.sock/mongodb-27017.sock",
"port": null
}
],
"auth": null,
"options": null
},
{
"description": "Unix domain socket with path resembling socket file and auth (absolute path)",
"uri": "mongodb://bob:bar@%2Ftmp%2Fpath.to.sock%2Fmongodb-27017.sock/admin",
"valid": true,
"warning": false,
"hosts": [
{
"type": "unix",
"host": "/tmp/path.to.sock/mongodb-27017.sock",
"port": null
}
],
"auth": {
"username": "bob",
"password": "bar",
"db": "admin"
},
"options": null
},
{
"description": "Multiple Unix domain sockets and auth DB (absolute path)",
"uri": "mongodb://%2Ftmp%2Fmongodb-27017.sock,%2Ftmp%2Fmongodb-27018.sock/admin",
"valid": true,
"warning": false,
"hosts": [
{
"type": "unix",
"host": "/tmp/mongodb-27017.sock",
"port": null
},
{
"type": "unix",
"host": "/tmp/mongodb-27018.sock",
"port": null
}
],
"auth": {
"username": null,
"password": null,
"db": "admin"
},
"options": null
},
{
"description": "Multiple Unix domain sockets with auth DB (absolute path)",
"uri": "mongodb://%2Ftmp%2Fmongodb-27017.sock,%2Ftmp%2Fmongodb-27018.sock/admin",
"valid": true,
"warning": false,
"hosts": [
{
"type": "unix",
"host": "/tmp/mongodb-27017.sock",
"port": null
},
{
"type": "unix",
"host": "/tmp/mongodb-27018.sock",
"port": null
}
],
"auth": {
"username": null,
"password": null,
"db": "admin"
},
"options": null
},
{
"description": "Multiple Unix domain sockets with auth and query string (absolute path)",
"uri": "mongodb://bob:bar@%2Ftmp%2Fmongodb-27017.sock,%2Ftmp%2Fmongodb-27018.sock/admin?w=1",
"valid": true,
"warning": false,
"hosts": [
{
"type": "unix",
"host": "/tmp/mongodb-27017.sock",
"port": null
},
{
"type": "unix",
"host": "/tmp/mongodb-27018.sock",
"port": null
}
],
"auth": {
"username": "bob",
"password": "bar",
"db": "admin"
},
"options": {
"w": 1
}
}
]
}

View File

@ -1,271 +1,271 @@
{
"tests": [
"tests": [
{
"description": "Unix domain socket (relative path with trailing slash)",
"uri": "mongodb://rel%2Fmongodb-27017.sock/",
"valid": true,
"warning": false,
"hosts": [
{
"auth": null,
"description": "Unix domain socket (relative path with trailing slash)",
"hosts": [
{
"host": "rel/mongodb-27017.sock",
"port": null,
"type": "unix"
}
],
"options": null,
"uri": "mongodb://rel%2Fmongodb-27017.sock/",
"valid": true,
"warning": false
},
{
"auth": null,
"description": "Unix domain socket (relative path without trailing slash)",
"hosts": [
{
"host": "rel/mongodb-27017.sock",
"port": null,
"type": "unix"
}
],
"options": null,
"uri": "mongodb://rel%2Fmongodb-27017.sock",
"valid": true,
"warning": false
},
{
"auth": null,
"description": "Unix domain socket (relative path with spaces)",
"hosts": [
{
"host": "rel/ /mongodb-27017.sock",
"port": null,
"type": "unix"
}
],
"options": null,
"uri": "mongodb://rel%2F %2Fmongodb-27017.sock",
"valid": true,
"warning": false
},
{
"auth": null,
"description": "Multiple Unix domain sockets (relative paths)",
"hosts": [
{
"host": "rel/mongodb-27017.sock",
"port": null,
"type": "unix"
},
{
"host": "rel/mongodb-27018.sock",
"port": null,
"type": "unix"
}
],
"options": null,
"uri": "mongodb://rel%2Fmongodb-27017.sock,rel%2Fmongodb-27018.sock",
"valid": true,
"warning": false
},
{
"auth": null,
"description": "Multiple Unix domain sockets (relative and absolute paths)",
"hosts": [
{
"host": "rel/mongodb-27017.sock",
"port": null,
"type": "unix"
},
{
"host": "/tmp/mongodb-27018.sock",
"port": null,
"type": "unix"
}
],
"options": null,
"uri": "mongodb://rel%2Fmongodb-27017.sock,%2Ftmp%2Fmongodb-27018.sock",
"valid": true,
"warning": false
},
{
"auth": null,
"description": "Multiple hosts (relative path and ipv4)",
"hosts": [
{
"host": "127.0.0.1",
"port": 27017,
"type": "ipv4"
},
{
"host": "rel/mongodb-27017.sock",
"port": null,
"type": "unix"
}
],
"options": null,
"uri": "mongodb://127.0.0.1:27017,rel%2Fmongodb-27017.sock",
"valid": true,
"warning": false
},
{
"auth": null,
"description": "Multiple hosts (relative path and hostname resembling relative path)",
"hosts": [
{
"host": "mongodb-27017.sock",
"port": null,
"type": "hostname"
},
{
"host": "rel/mongodb-27018.sock",
"port": null,
"type": "unix"
}
],
"options": null,
"uri": "mongodb://mongodb-27017.sock,rel%2Fmongodb-27018.sock",
"valid": true,
"warning": false
},
{
"auth": {
"db": "admin",
"password": "foo",
"username": "alice"
},
"description": "Unix domain socket with auth database (relative path)",
"hosts": [
{
"host": "rel/mongodb-27017.sock",
"port": null,
"type": "unix"
}
],
"options": null,
"uri": "mongodb://alice:foo@rel%2Fmongodb-27017.sock/admin",
"valid": true,
"warning": false
},
{
"auth": null,
"description": "Unix domain socket with path resembling socket file (relative path with trailing slash)",
"hosts": [
{
"host": "rel/path.to.sock/mongodb-27017.sock",
"port": null,
"type": "unix"
}
],
"options": null,
"uri": "mongodb://rel%2Fpath.to.sock%2Fmongodb-27017.sock/",
"valid": true,
"warning": false
},
{
"auth": null,
"description": "Unix domain socket with path resembling socket file (relative path without trailing slash)",
"hosts": [
{
"host": "rel/path.to.sock/mongodb-27017.sock",
"port": null,
"type": "unix"
}
],
"options": null,
"uri": "mongodb://rel%2Fpath.to.sock%2Fmongodb-27017.sock",
"valid": true,
"warning": false
},
{
"auth": {
"db": "admin",
"password": "bar",
"username": "bob"
},
"description": "Unix domain socket with path resembling socket file and auth (relative path)",
"hosts": [
{
"host": "rel/path.to.sock/mongodb-27017.sock",
"port": null,
"type": "unix"
}
],
"options": null,
"uri": "mongodb://bob:bar@rel%2Fpath.to.sock%2Fmongodb-27017.sock/admin",
"valid": true,
"warning": false
},
{
"auth": {
"db": "admin",
"password": null,
"username": null
},
"description": "Multiple Unix domain sockets and auth DB resembling a socket (relative path)",
"hosts": [
{
"host": "rel/mongodb-27017.sock",
"port": null,
"type": "unix"
},
{
"host": "rel/mongodb-27018.sock",
"port": null,
"type": "unix"
}
],
"options": null,
"uri": "mongodb://rel%2Fmongodb-27017.sock,rel%2Fmongodb-27018.sock/admin",
"valid": true,
"warning": false
},
{
"auth": {
"db": "admin",
"password": null,
"username": null
},
"description": "Multiple Unix domain sockets with auth DB resembling a path (relative path)",
"hosts": [
{
"host": "rel/mongodb-27017.sock",
"port": null,
"type": "unix"
},
{
"host": "rel/mongodb-27018.sock",
"port": null,
"type": "unix"
}
],
"options": null,
"uri": "mongodb://rel%2Fmongodb-27017.sock,rel%2Fmongodb-27018.sock/admin",
"valid": true,
"warning": false
},
{
"auth": {
"db": "admin",
"password": "bar",
"username": "bob"
},
"description": "Multiple Unix domain sockets with auth and query string (relative path)",
"hosts": [
{
"host": "rel/mongodb-27017.sock",
"port": null,
"type": "unix"
},
{
"host": "rel/mongodb-27018.sock",
"port": null,
"type": "unix"
}
],
"options": {
"w": 1
},
"uri": "mongodb://bob:bar@rel%2Fmongodb-27017.sock,rel%2Fmongodb-27018.sock/admin?w=1",
"valid": true,
"warning": false
"type": "unix",
"host": "rel/mongodb-27017.sock",
"port": null
}
]
],
"auth": null,
"options": null
},
{
"description": "Unix domain socket (relative path without trailing slash)",
"uri": "mongodb://rel%2Fmongodb-27017.sock",
"valid": true,
"warning": false,
"hosts": [
{
"type": "unix",
"host": "rel/mongodb-27017.sock",
"port": null
}
],
"auth": null,
"options": null
},
{
"description": "Unix domain socket (relative path with spaces)",
"uri": "mongodb://rel%2F %2Fmongodb-27017.sock",
"valid": true,
"warning": false,
"hosts": [
{
"type": "unix",
"host": "rel/ /mongodb-27017.sock",
"port": null
}
],
"auth": null,
"options": null
},
{
"description": "Multiple Unix domain sockets (relative paths)",
"uri": "mongodb://rel%2Fmongodb-27017.sock,rel%2Fmongodb-27018.sock",
"valid": true,
"warning": false,
"hosts": [
{
"type": "unix",
"host": "rel/mongodb-27017.sock",
"port": null
},
{
"type": "unix",
"host": "rel/mongodb-27018.sock",
"port": null
}
],
"auth": null,
"options": null
},
{
"description": "Multiple Unix domain sockets (relative and absolute paths)",
"uri": "mongodb://rel%2Fmongodb-27017.sock,%2Ftmp%2Fmongodb-27018.sock",
"valid": true,
"warning": false,
"hosts": [
{
"type": "unix",
"host": "rel/mongodb-27017.sock",
"port": null
},
{
"type": "unix",
"host": "/tmp/mongodb-27018.sock",
"port": null
}
],
"auth": null,
"options": null
},
{
"description": "Multiple hosts (relative path and ipv4)",
"uri": "mongodb://127.0.0.1:27017,rel%2Fmongodb-27017.sock",
"valid": true,
"warning": false,
"hosts": [
{
"type": "ipv4",
"host": "127.0.0.1",
"port": 27017
},
{
"type": "unix",
"host": "rel/mongodb-27017.sock",
"port": null
}
],
"auth": null,
"options": null
},
{
"description": "Multiple hosts (relative path and hostname resembling relative path)",
"uri": "mongodb://mongodb-27017.sock,rel%2Fmongodb-27018.sock",
"valid": true,
"warning": false,
"hosts": [
{
"type": "hostname",
"host": "mongodb-27017.sock",
"port": null
},
{
"type": "unix",
"host": "rel/mongodb-27018.sock",
"port": null
}
],
"auth": null,
"options": null
},
{
"description": "Unix domain socket with auth database (relative path)",
"uri": "mongodb://alice:foo@rel%2Fmongodb-27017.sock/admin",
"valid": true,
"warning": false,
"hosts": [
{
"type": "unix",
"host": "rel/mongodb-27017.sock",
"port": null
}
],
"auth": {
"username": "alice",
"password": "foo",
"db": "admin"
},
"options": null
},
{
"description": "Unix domain socket with path resembling socket file (relative path with trailing slash)",
"uri": "mongodb://rel%2Fpath.to.sock%2Fmongodb-27017.sock/",
"valid": true,
"warning": false,
"hosts": [
{
"type": "unix",
"host": "rel/path.to.sock/mongodb-27017.sock",
"port": null
}
],
"auth": null,
"options": null
},
{
"description": "Unix domain socket with path resembling socket file (relative path without trailing slash)",
"uri": "mongodb://rel%2Fpath.to.sock%2Fmongodb-27017.sock",
"valid": true,
"warning": false,
"hosts": [
{
"type": "unix",
"host": "rel/path.to.sock/mongodb-27017.sock",
"port": null
}
],
"auth": null,
"options": null
},
{
"description": "Unix domain socket with path resembling socket file and auth (relative path)",
"uri": "mongodb://bob:bar@rel%2Fpath.to.sock%2Fmongodb-27017.sock/admin",
"valid": true,
"warning": false,
"hosts": [
{
"type": "unix",
"host": "rel/path.to.sock/mongodb-27017.sock",
"port": null
}
],
"auth": {
"username": "bob",
"password": "bar",
"db": "admin"
},
"options": null
},
{
"description": "Multiple Unix domain sockets and auth DB resembling a socket (relative path)",
"uri": "mongodb://rel%2Fmongodb-27017.sock,rel%2Fmongodb-27018.sock/admin",
"valid": true,
"warning": false,
"hosts": [
{
"type": "unix",
"host": "rel/mongodb-27017.sock",
"port": null
},
{
"type": "unix",
"host": "rel/mongodb-27018.sock",
"port": null
}
],
"auth": {
"username": null,
"password": null,
"db": "admin"
},
"options": null
},
{
"description": "Multiple Unix domain sockets with auth DB resembling a path (relative path)",
"uri": "mongodb://rel%2Fmongodb-27017.sock,rel%2Fmongodb-27018.sock/admin",
"valid": true,
"warning": false,
"hosts": [
{
"type": "unix",
"host": "rel/mongodb-27017.sock",
"port": null
},
{
"type": "unix",
"host": "rel/mongodb-27018.sock",
"port": null
}
],
"auth": {
"username": null,
"password": null,
"db": "admin"
},
"options": null
},
{
"description": "Multiple Unix domain sockets with auth and query string (relative path)",
"uri": "mongodb://bob:bar@rel%2Fmongodb-27017.sock,rel%2Fmongodb-27018.sock/admin?w=1",
"valid": true,
"warning": false,
"hosts": [
{
"type": "unix",
"host": "rel/mongodb-27017.sock",
"port": null
},
{
"type": "unix",
"host": "rel/mongodb-27018.sock",
"port": null
}
],
"auth": {
"username": "bob",
"password": "bar",
"db": "admin"
},
"options": {
"w": 1
}
}
]
}

View File

@ -65,4 +65,4 @@
}
}
]
}
}

View File

@ -35,4 +35,4 @@
}
}
]
}
}

View File

@ -67,4 +67,4 @@
}
}
]
}
}

View File

@ -50,4 +50,4 @@
}
}
]
}
}

View File

@ -26,4 +26,4 @@
}
}
]
}
}

View File

@ -57,4 +57,4 @@
}
}
]
}
}

View File

@ -30,4 +30,4 @@
}
}
]
}
}

View File

@ -52,4 +52,4 @@
}
}
]
}
}

View File

@ -31,4 +31,4 @@
}
}
]
}
}

View File

@ -102,4 +102,4 @@
}
}
]
}
}

View File

@ -44,4 +44,4 @@
}
}
]
}
}

View File

@ -73,4 +73,4 @@
}
}
]
}
}

View File

@ -48,4 +48,4 @@
}
}
]
}
}

View File

@ -93,4 +93,4 @@
}
}
]
}
}

View File

@ -56,4 +56,4 @@
}
}
]
}
}

View File

@ -124,4 +124,4 @@
}
}
]
}
}

View File

@ -55,4 +55,4 @@
}
}
]
}
}

View File

@ -198,4 +198,4 @@
}
}
]
}
}

View File

@ -158,4 +158,4 @@
}
}
]
}
}

View File

@ -270,4 +270,4 @@
}
}
]
}
}

View File

@ -0,0 +1,203 @@
{
"data": [
{
"_id": 1,
"y": [
{
"b": 3
},
{
"b": 1
}
]
},
{
"_id": 2,
"y": [
{
"b": 0
},
{
"b": 1
}
]
}
],
"minServerVersion": "3.6",
"tests": [
{
"description": "FindOneAndUpdate when no document matches arrayFilters",
"operation": {
"name": "findOneAndUpdate",
"arguments": {
"filter": {},
"update": {
"$set": {
"y.$[i].b": 2
}
},
"arrayFilters": [
{
"i.b": 4
}
]
}
},
"outcome": {
"result": {
"_id": 1,
"y": [
{
"b": 3
},
{
"b": 1
}
]
},
"collection": {
"data": [
{
"_id": 1,
"y": [
{
"b": 3
},
{
"b": 1
}
]
},
{
"_id": 2,
"y": [
{
"b": 0
},
{
"b": 1
}
]
}
]
}
}
},
{
"description": "FindOneAndUpdate when one document matches arrayFilters",
"operation": {
"name": "findOneAndUpdate",
"arguments": {
"filter": {},
"update": {
"$set": {
"y.$[i].b": 2
}
},
"arrayFilters": [
{
"i.b": 3
}
]
}
},
"outcome": {
"result": {
"_id": 1,
"y": [
{
"b": 3
},
{
"b": 1
}
]
},
"collection": {
"data": [
{
"_id": 1,
"y": [
{
"b": 2
},
{
"b": 1
}
]
},
{
"_id": 2,
"y": [
{
"b": 0
},
{
"b": 1
}
]
}
]
}
}
},
{
"description": "FindOneAndUpdate when multiple documents match arrayFilters",
"operation": {
"name": "findOneAndUpdate",
"arguments": {
"filter": {},
"update": {
"$set": {
"y.$[i].b": 2
}
},
"arrayFilters": [
{
"i.b": 1
}
]
}
},
"outcome": {
"result": {
"_id": 1,
"y": [
{
"b": 3
},
{
"b": 1
}
]
},
"collection": {
"data": [
{
"_id": 1,
"y": [
{
"b": 3
},
{
"b": 2
}
]
},
{
"_id": 2,
"y": [
{
"b": 0
},
{
"b": 1
}
]
}
]
}
}
}
]
}

View File

@ -64,4 +64,4 @@
}
}
]
}
}

View File

@ -376,4 +376,4 @@
}
}
]
}
}

View File

@ -49,4 +49,4 @@
}
}
]
}
}

View File

@ -36,4 +36,4 @@
}
}
]
}
}

View File

@ -50,4 +50,4 @@
}
}
]
}
}

View File

@ -176,4 +176,4 @@
}
}
]
}
}

View File

@ -202,4 +202,4 @@
}
}
]
}
}

View File

@ -0,0 +1,182 @@
{
"data": [
{
"_id": 1,
"y": [
{
"b": 3
},
{
"b": 1
}
]
},
{
"_id": 2,
"y": [
{
"b": 0
},
{
"b": 1
}
]
}
],
"minServerVersion": "3.6",
"tests": [
{
"description": "UpdateMany when no documents match arrayFilters",
"operation": {
"name": "updateMany",
"arguments": {
"filter": {},
"update": {
"$set": {
"y.$[i].b": 2
}
},
"arrayFilters": [
{
"i.b": 4
}
]
}
},
"outcome": {
"result": {
"matchedCount": 2,
"modifiedCount": 0
},
"collection": {
"data": [
{
"_id": 1,
"y": [
{
"b": 3
},
{
"b": 1
}
]
},
{
"_id": 2,
"y": [
{
"b": 0
},
{
"b": 1
}
]
}
]
}
}
},
{
"description": "UpdateMany when one document matches arrayFilters",
"operation": {
"name": "updateMany",
"arguments": {
"filter": {},
"update": {
"$set": {
"y.$[i].b": 2
}
},
"arrayFilters": [
{
"i.b": 3
}
]
}
},
"outcome": {
"result": {
"matchedCount": 2,
"modifiedCount": 1
},
"collection": {
"data": [
{
"_id": 1,
"y": [
{
"b": 2
},
{
"b": 1
}
]
},
{
"_id": 2,
"y": [
{
"b": 0
},
{
"b": 1
}
]
}
]
}
}
},
{
"description": "UpdateMany when multiple documents match arrayFilters",
"operation": {
"name": "updateMany",
"arguments": {
"filter": {},
"update": {
"$set": {
"y.$[i].b": 2
}
},
"arrayFilters": [
{
"i.b": 1
}
]
}
},
"outcome": {
"result": {
"matchedCount": 2,
"modifiedCount": 2
},
"collection": {
"data": [
{
"_id": 1,
"y": [
{
"b": 3
},
{
"b": 2
}
]
},
{
"_id": 2,
"y": [
{
"b": 0
},
{
"b": 2
}
]
}
]
}
}
}
]
}

View File

@ -59,4 +59,4 @@
}
}
]
}
}

View File

@ -176,4 +176,4 @@
}
}
]
}
}

View File

@ -180,4 +180,4 @@
}
}
]
}
}

View File

@ -0,0 +1,390 @@
{
"data": [
{
"_id": 1,
"y": [
{
"b": 3
},
{
"b": 1
}
]
},
{
"_id": 2,
"y": [
{
"b": 0
},
{
"b": 1
}
]
},
{
"_id": 3,
"y": [
{
"b": 5,
"c": [
{
"d": 2
},
{
"d": 1
}
]
}
]
}
],
"minServerVersion": "3.6",
"tests": [
{
"description": "UpdateOne when no document matches arrayFilters",
"operation": {
"name": "updateOne",
"arguments": {
"filter": {},
"update": {
"$set": {
"y.$[i].b": 2
}
},
"arrayFilters": [
{
"i.b": 4
}
]
}
},
"outcome": {
"result": {
"matchedCount": 1,
"modifiedCount": 0
},
"collection": {
"data": [
{
"_id": 1,
"y": [
{
"b": 3
},
{
"b": 1
}
]
},
{
"_id": 2,
"y": [
{
"b": 0
},
{
"b": 1
}
]
},
{
"_id": 3,
"y": [
{
"b": 5,
"c": [
{
"d": 2
},
{
"d": 1
}
]
}
]
}
]
}
}
},
{
"description": "UpdateOne when one document matches arrayFilters",
"operation": {
"name": "updateOne",
"arguments": {
"filter": {},
"update": {
"$set": {
"y.$[i].b": 2
}
},
"arrayFilters": [
{
"i.b": 3
}
]
}
},
"outcome": {
"result": {
"matchedCount": 1,
"modifiedCount": 1
},
"collection": {
"data": [
{
"_id": 1,
"y": [
{
"b": 2
},
{
"b": 1
}
]
},
{
"_id": 2,
"y": [
{
"b": 0
},
{
"b": 1
}
]
},
{
"_id": 3,
"y": [
{
"b": 5,
"c": [
{
"d": 2
},
{
"d": 1
}
]
}
]
}
]
}
}
},
{
"description": "UpdateOne when multiple documents match arrayFilters",
"operation": {
"name": "updateOne",
"arguments": {
"filter": {},
"update": {
"$set": {
"y.$[i].b": 2
}
},
"arrayFilters": [
{
"i.b": 1
}
]
}
},
"outcome": {
"result": {
"matchedCount": 1,
"modifiedCount": 1
},
"collection": {
"data": [
{
"_id": 1,
"y": [
{
"b": 3
},
{
"b": 2
}
]
},
{
"_id": 2,
"y": [
{
"b": 0
},
{
"b": 1
}
]
},
{
"_id": 3,
"y": [
{
"b": 5,
"c": [
{
"d": 2
},
{
"d": 1
}
]
}
]
}
]
}
}
},
{
"description": "UpdateOne when no documents match multiple arrayFilters",
"operation": {
"name": "updateOne",
"arguments": {
"filter": {
"_id": 3
},
"update": {
"$set": {
"y.$[i].c.$[j].d": 0
}
},
"arrayFilters": [
{
"i.b": 5
},
{
"j.d": 3
}
]
}
},
"outcome": {
"result": {
"matchedCount": 1,
"modifiedCount": 0
},
"collection": {
"data": [
{
"_id": 1,
"y": [
{
"b": 3
},
{
"b": 1
}
]
},
{
"_id": 2,
"y": [
{
"b": 0
},
{
"b": 1
}
]
},
{
"_id": 3,
"y": [
{
"b": 5,
"c": [
{
"d": 2
},
{
"d": 1
}
]
}
]
}
]
}
}
},
{
"description": "UpdateOne when one document matches multiple arrayFilters",
"operation": {
"name": "updateOne",
"arguments": {
"filter": {
"_id": 3
},
"update": {
"$set": {
"y.$[i].c.$[j].d": 0
}
},
"arrayFilters": [
{
"i.b": 5
},
{
"j.d": 1
}
]
}
},
"outcome": {
"result": {
"matchedCount": 1,
"modifiedCount": 1
},
"collection": {
"data": [
{
"_id": 1,
"y": [
{
"b": 3
},
{
"b": 1
}
]
},
{
"_id": 2,
"y": [
{
"b": 0
},
{
"b": 1
}
]
},
{
"_id": 3,
"y": [
{
"b": 5,
"c": [
{
"d": 2
},
{
"d": 0
}
]
}
]
}
]
}
}
}
]
}

View File

@ -51,4 +51,4 @@
}
}
]
}
}

View File

@ -160,4 +160,4 @@
}
}
]
}
}

View File

@ -164,4 +164,4 @@
}
}
]
}
}

View File

@ -15,7 +15,9 @@
"arbiters": [
"b:27017"
],
"setName": "rs"
"setName": "rs",
"minWireVersion": 0,
"maxWireVersion": 6
}
]
],

View File

@ -15,7 +15,9 @@
"passives": [
"b:27017"
],
"setName": "rs"
"setName": "rs",
"minWireVersion": 0,
"maxWireVersion": 6
}
]
],
@ -50,7 +52,9 @@
"passives": [
"b:27017"
],
"setName": "rs"
"setName": "rs",
"minWireVersion": 0,
"maxWireVersion": 6
}
]
],

View File

@ -13,7 +13,9 @@
"hosts": [
"a:27017",
"b:27017"
]
],
"minWireVersion": 0,
"maxWireVersion": 6
}
]
],

View File

@ -14,7 +14,9 @@
"hosts": [
"a:27017",
"b:27017"
]
],
"minWireVersion": 0,
"maxWireVersion": 6
}
]
],

View File

@ -15,7 +15,9 @@
"a:27017",
"b:27017",
"c:27017"
]
],
"minWireVersion": 0,
"maxWireVersion": 6
}
]
],
@ -53,7 +55,9 @@
"b:27017",
"c:27017",
"d:27017"
]
],
"minWireVersion": 0,
"maxWireVersion": 6
}
]
],
@ -94,7 +98,9 @@
"c:27017",
"d:27017",
"e:27017"
]
],
"minWireVersion": 0,
"maxWireVersion": 6
}
]
],
@ -135,7 +141,9 @@
"a:27017",
"b:27017",
"c:27017"
]
],
"minWireVersion": 0,
"maxWireVersion": 6
}
]
],

View File

@ -17,7 +17,9 @@
"setVersion": 1,
"electionId": {
"$oid": "000000000000000000000001"
}
},
"minWireVersion": 0,
"maxWireVersion": 6
}
],
[
@ -33,7 +35,9 @@
"setVersion": 1,
"electionId": {
"$oid": "000000000000000000000001"
}
},
"minWireVersion": 0,
"maxWireVersion": 6
}
]
],

View File

@ -9,7 +9,9 @@
{
"ok": 1,
"ismaster": false,
"isreplicaset": true
"isreplicaset": true,
"minWireVersion": 0,
"maxWireVersion": 6
}
]
],

View File

@ -12,7 +12,9 @@
"setName": "rs",
"hosts": [
"b:27017"
]
],
"minWireVersion": 0,
"maxWireVersion": 6
}
]
],

View File

@ -14,7 +14,9 @@
"b:27017"
],
"setName": "rs",
"localLogicalSessionTimeoutMinutes": 1
"localLogicalSessionTimeoutMinutes": 1,
"minWireVersion": 0,
"maxWireVersion": 6
}
],
[
@ -28,7 +30,9 @@
"b:27017"
],
"setName": "rs",
"localLogicalSessionTimeoutMinutes": 2
"localLogicalSessionTimeoutMinutes": 2,
"minWireVersion": 0,
"maxWireVersion": 6
}
]
],
@ -60,7 +64,9 @@
"b:27017"
],
"setName": "rs",
"localLogicalSessionTimeoutMinutes": 1
"localLogicalSessionTimeoutMinutes": 1,
"minWireVersion": 0,
"maxWireVersion": 6
}
],
[
@ -74,7 +80,9 @@
"b:27017"
],
"setName": "rs",
"localLogicalSessionTimeoutMinutes": null
"localLogicalSessionTimeoutMinutes": null,
"minWireVersion": 0,
"maxWireVersion": 6
}
]
],

View File

@ -13,7 +13,9 @@
"hosts": [
"a:27017",
"b:27017"
]
],
"minWireVersion": 0,
"maxWireVersion": 6
}
]
],
@ -43,7 +45,9 @@
"setName": "rs",
"hosts": [
"a:27017"
]
],
"minWireVersion": 0,
"maxWireVersion": 6
}
]
],

View File

@ -8,7 +8,9 @@
"b:27017",
{
"ok": 1,
"ismaster": true
"ismaster": true,
"minWireVersion": 0,
"maxWireVersion": 6
}
]
],
@ -34,7 +36,9 @@
"setName": "rs",
"hosts": [
"a:27017"
]
],
"minWireVersion": 0,
"maxWireVersion": 6
}
]
],

View File

@ -13,7 +13,9 @@
"hosts": [
"a:27017",
"b:27017"
]
],
"minWireVersion": 0,
"maxWireVersion": 6
}
]
],
@ -44,7 +46,9 @@
"hosts": [
"a:27017",
"b:27017"
]
],
"minWireVersion": 0,
"maxWireVersion": 6
}
]
],

View File

@ -17,7 +17,9 @@
"setVersion": 1,
"electionId": {
"$oid": "000000000000000000000001"
}
},
"minWireVersion": 0,
"maxWireVersion": 6
}
]
],
@ -57,7 +59,9 @@
"setVersion": 1,
"electionId": {
"$oid": "000000000000000000000002"
}
},
"minWireVersion": 0,
"maxWireVersion": 6
}
]
],
@ -97,7 +101,9 @@
"setVersion": 1,
"electionId": {
"$oid": "000000000000000000000001"
}
},
"minWireVersion": 0,
"maxWireVersion": 6
}
]
],

View File

@ -17,7 +17,9 @@
"setVersion": 1,
"electionId": {
"$oid": "000000000000000000000001"
}
},
"minWireVersion": 0,
"maxWireVersion": 6
}
]
],
@ -57,7 +59,9 @@
"setVersion": 2,
"electionId": {
"$oid": "000000000000000000000001"
}
},
"minWireVersion": 0,
"maxWireVersion": 6
}
]
],
@ -97,7 +101,9 @@
"setVersion": 1,
"electionId": {
"$oid": "000000000000000000000001"
}
},
"minWireVersion": 0,
"maxWireVersion": 6
}
]
],

View File

@ -13,7 +13,9 @@
"a:27017",
"b:27017"
],
"setName": "rs"
"setName": "rs",
"minWireVersion": 0,
"maxWireVersion": 6
}
]
],
@ -43,7 +45,9 @@
"hosts": [
"a:27017"
],
"setName": "wrong"
"setName": "wrong",
"minWireVersion": 0,
"maxWireVersion": 6
}
]
],

View File

@ -7,7 +7,9 @@
[
"b:27017",
{
"ok": 1
"ok": 1,
"minWireVersion": 0,
"maxWireVersion": 6
}
]
],

View File

@ -18,7 +18,9 @@
],
"arbiters": [
"C:27017"
]
],
"minWireVersion": 0,
"maxWireVersion": 6
}
]
],

View File

@ -15,7 +15,9 @@
"c:27017"
],
"setVersion": 1,
"setName": "rs"
"setName": "rs",
"minWireVersion": 0,
"maxWireVersion": 6
}
]
],
@ -59,7 +61,9 @@
"setVersion": 1,
"electionId": {
"$oid": "000000000000000000000002"
}
},
"minWireVersion": 0,
"maxWireVersion": 6
}
]
],
@ -102,7 +106,9 @@
"c:27017"
],
"setVersion": 1,
"setName": "rs"
"setName": "rs",
"minWireVersion": 0,
"maxWireVersion": 6
}
]
],
@ -146,7 +152,9 @@
"setVersion": 1,
"electionId": {
"$oid": "000000000000000000000001"
}
},
"minWireVersion": 0,
"maxWireVersion": 6
}
]
],

View File

@ -12,7 +12,9 @@
"hosts": [
"a:27017"
],
"setName": "rs"
"setName": "rs",
"minWireVersion": 0,
"maxWireVersion": 6
}
]
],
@ -33,7 +35,9 @@
[
"a:27017",
{
"ok": 1
"ok": 1,
"minWireVersion": 0,
"maxWireVersion": 6
}
]
],

View File

@ -12,7 +12,9 @@
"hosts": [
"a:27017"
],
"setName": "rs"
"setName": "rs",
"minWireVersion": 0,
"maxWireVersion": 6
}
]
],
@ -38,7 +40,9 @@
"hosts": [
"a:27017"
],
"setName": "wrong"
"setName": "wrong",
"minWireVersion": 0,
"maxWireVersion": 6
}
]
],

View File

@ -12,7 +12,9 @@
"hosts": [
"a:27017"
],
"setName": "rs"
"setName": "rs",
"minWireVersion": 0,
"maxWireVersion": 6
}
]
],

View File

@ -17,7 +17,9 @@
"setVersion": 1,
"electionId": {
"$oid": "000000000000000000000001"
}
},
"minWireVersion": 0,
"maxWireVersion": 6
}
],
[
@ -33,7 +35,9 @@
"setVersion": 1,
"electionId": {
"$oid": "000000000000000000000002"
}
},
"minWireVersion": 0,
"maxWireVersion": 6
}
]
],
@ -98,7 +102,9 @@
"setVersion": 1,
"electionId": {
"$oid": "000000000000000000000001"
}
},
"minWireVersion": 0,
"maxWireVersion": 6
}
]
],
@ -135,7 +141,9 @@
"setVersion": 1,
"electionId": {
"$oid": "000000000000000000000003"
}
},
"minWireVersion": 0,
"maxWireVersion": 6
}
]
],
@ -172,7 +180,9 @@
"a:27017",
"b:27017"
],
"setName": "rs"
"setName": "rs",
"minWireVersion": 0,
"maxWireVersion": 6
}
]
],

View File

@ -17,7 +17,9 @@
"setVersion": 1,
"electionId": {
"$oid": "000000000000000000000001"
}
},
"minWireVersion": 0,
"maxWireVersion": 6
}
],
[
@ -33,7 +35,9 @@
"setVersion": 2,
"electionId": {
"$oid": "000000000000000000000001"
}
},
"minWireVersion": 0,
"maxWireVersion": 6
}
]
],
@ -98,7 +102,9 @@
"setVersion": 1,
"electionId": {
"$oid": "000000000000000000000001"
}
},
"minWireVersion": 0,
"maxWireVersion": 6
}
]
],
@ -135,7 +141,9 @@
"setVersion": 2,
"electionId": {
"$oid": "000000000000000000000002"
}
},
"minWireVersion": 0,
"maxWireVersion": 6
}
]
],
@ -172,7 +180,9 @@
"a:27017",
"b:27017"
],
"setName": "rs"
"setName": "rs",
"minWireVersion": 0,
"maxWireVersion": 6
}
]
],

View File

@ -15,7 +15,9 @@
"b:27017"
],
"setName": "rs",
"primary": "b:27017"
"primary": "b:27017",
"minWireVersion": 0,
"maxWireVersion": 6
}
]
],
@ -42,7 +44,9 @@
"hosts": [
"b:27017"
],
"setName": "rs"
"setName": "rs",
"minWireVersion": 0,
"maxWireVersion": 6
}
]
],

View File

@ -14,7 +14,9 @@
"hosts": [
"a:27017",
"b:27017"
]
],
"minWireVersion": 0,
"maxWireVersion": 6
}
]
],
@ -45,7 +47,9 @@
"hosts": [
"a:27017",
"b:27017"
]
],
"minWireVersion": 0,
"maxWireVersion": 6
}
]
],
@ -77,7 +81,9 @@
"a:27017",
"b:27017",
"c:27017"
]
],
"minWireVersion": 0,
"maxWireVersion": 6
}
]
],
@ -115,7 +121,9 @@
"a:27017",
"b:27017",
"c:27017"
]
],
"minWireVersion": 0,
"maxWireVersion": 6
}
]
],

View File

@ -14,7 +14,9 @@
"b:27017"
],
"me": "a:27017",
"setName": "rs"
"setName": "rs",
"minWireVersion": 0,
"maxWireVersion": 6
}
]
],
@ -46,7 +48,9 @@
"d:27017"
],
"me": "c:27017",
"setName": "rs"
"setName": "rs",
"minWireVersion": 0,
"maxWireVersion": 6
}
]
],

View File

@ -12,7 +12,9 @@
"hosts": [
"a:27017"
],
"setName": "wrong"
"setName": "wrong",
"minWireVersion": 0,
"maxWireVersion": 6
}
]
],

View File

@ -12,7 +12,9 @@
"setName": "rs",
"hosts": [
"a:27017"
]
],
"minWireVersion": 0,
"maxWireVersion": 6
}
]
],
@ -40,7 +42,9 @@
"hosts": [
"a:27017",
"b:27017"
]
],
"minWireVersion": 0,
"maxWireVersion": 6
}
]
],

View File

@ -15,7 +15,9 @@
"c:27017",
"d:27017"
],
"setName": "rs"
"setName": "rs",
"minWireVersion": 0,
"maxWireVersion": 6
}
],
[
@ -28,7 +30,9 @@
"c:27017",
"d:27017"
],
"setName": "rs"
"setName": "rs",
"minWireVersion": 0,
"maxWireVersion": 6
}
]
],

View File

@ -13,7 +13,9 @@
"hosts": [
"a:27017",
"b:27017"
]
],
"minWireVersion": 0,
"maxWireVersion": 6
}
],
[
@ -26,7 +28,9 @@
"hosts": [
"b:27017",
"c:27017"
]
],
"minWireVersion": 0,
"maxWireVersion": 6
}
]
],

View File

@ -13,7 +13,9 @@
"hosts": [
"a:27017"
],
"setName": "wrong"
"setName": "wrong",
"minWireVersion": 0,
"maxWireVersion": 6
}
]
],

View File

@ -13,7 +13,9 @@
"a:27017",
"b:27017"
],
"setName": "rs"
"setName": "rs",
"minWireVersion": 0,
"maxWireVersion": 6
}
]
],
@ -45,7 +47,9 @@
"a:27017",
"b:27017"
],
"setName": "wrong"
"setName": "wrong",
"minWireVersion": 0,
"maxWireVersion": 6
}
]
],

View File

@ -14,7 +14,9 @@
"b:27017"
],
"setName": "rs",
"setVersion": 2
"setVersion": 2,
"minWireVersion": 0,
"maxWireVersion": 6
}
]
],
@ -49,7 +51,9 @@
"b:27017"
],
"setName": "rs",
"setVersion": 1
"setVersion": 1,
"minWireVersion": 0,
"maxWireVersion": 6
}
]
],

View File

@ -12,7 +12,9 @@
"hosts": [
"a:27017"
],
"setName": "rs"
"setName": "rs",
"minWireVersion": 0,
"maxWireVersion": 6
}
]
],
@ -39,7 +41,9 @@
"hosts": [
"a:27017"
],
"setName": "wrong"
"setName": "wrong",
"minWireVersion": 0,
"maxWireVersion": 6
}
]
],

View File

@ -9,7 +9,9 @@
{
"ok": 1,
"ismaster": true,
"msg": "isdbgrid"
"msg": "isdbgrid",
"minWireVersion": 0,
"maxWireVersion": 6
}
]
],

View File

@ -17,7 +17,9 @@
"setVersion": 1,
"electionId": {
"$oid": "000000000000000000000001"
}
},
"minWireVersion": 0,
"maxWireVersion": 6
}
]
],
@ -54,7 +56,9 @@
"b:27017"
],
"setName": "rs",
"setVersion": 2
"setVersion": 2,
"minWireVersion": 0,
"maxWireVersion": 6
}
]
],
@ -91,7 +95,9 @@
"setVersion": 1,
"electionId": {
"$oid": "000000000000000000000002"
}
},
"minWireVersion": 0,
"maxWireVersion": 6
}
]
],

View File

@ -14,7 +14,9 @@
"b:27017",
"c:27017"
],
"setName": "wrong"
"setName": "wrong",
"minWireVersion": 0,
"maxWireVersion": 6
}
]
],

View File

@ -10,7 +10,9 @@
"ok": 1,
"ismaster": true,
"msg": "isdbgrid",
"localLogicalSessionTimeoutMinutes": 1
"localLogicalSessionTimeoutMinutes": 1,
"minWireVersion": 0,
"maxWireVersion": 6
}
],
[
@ -19,7 +21,9 @@
"ok": 1,
"ismaster": true,
"msg": "isdbgrid",
"localLogicalSessionTimeoutMinutes": 2
"localLogicalSessionTimeoutMinutes": 2,
"minWireVersion": 0,
"maxWireVersion": 6
}
]
],
@ -47,7 +51,9 @@
"ok": 1,
"ismaster": true,
"msg": "isdbgrid",
"localLogicalSessionTimeoutMinutes": 1
"localLogicalSessionTimeoutMinutes": 1,
"minWireVersion": 0,
"maxWireVersion": 6
}
],
[
@ -55,7 +61,9 @@
{
"ok": 1,
"ismaster": true,
"msg": "isdbgrid"
"msg": "isdbgrid",
"minWireVersion": 0,
"maxWireVersion": 6
}
]
],

View File

@ -9,7 +9,9 @@
{
"ok": 1,
"ismaster": true,
"msg": "isdbgrid"
"msg": "isdbgrid",
"minWireVersion": 0,
"maxWireVersion": 6
}
],
[
@ -17,7 +19,9 @@
{
"ok": 1,
"ismaster": true,
"msg": "isdbgrid"
"msg": "isdbgrid",
"minWireVersion": 0,
"maxWireVersion": 6
}
]
],
@ -67,7 +71,9 @@
{
"ok": 1,
"ismaster": true,
"msg": "isdbgrid"
"msg": "isdbgrid",
"minWireVersion": 0,
"maxWireVersion": 6
}
]
],

View File

@ -9,7 +9,9 @@
{
"ok": 1,
"ismaster": true,
"msg": "isdbgrid"
"msg": "isdbgrid",
"minWireVersion": 0,
"maxWireVersion": 6
}
],
[
@ -17,7 +19,9 @@
{
"ok": 1,
"ismaster": true,
"msg": "isdbgrid"
"msg": "isdbgrid",
"minWireVersion": 0,
"maxWireVersion": 6
}
]
],

View File

@ -9,7 +9,9 @@
{
"ok": 1,
"ismaster": true,
"msg": "isdbgrid"
"msg": "isdbgrid",
"minWireVersion": 0,
"maxWireVersion": 6
}
],
[
@ -20,7 +22,9 @@
"hosts": [
"b:27017"
],
"setName": "rs"
"setName": "rs",
"minWireVersion": 0,
"maxWireVersion": 6
}
]
],

View File

@ -12,7 +12,9 @@
"hosts": [
"b:27017"
],
"setName": "rs"
"setName": "rs",
"minWireVersion": 0,
"maxWireVersion": 6
}
]
],

View File

@ -9,7 +9,9 @@
{
"ok": 1,
"ismaster": true,
"msg": "isdbgrid"
"msg": "isdbgrid",
"minWireVersion": 0,
"maxWireVersion": 6
}
]
],

View File

@ -14,7 +14,9 @@
"a:27017",
"b:27017"
],
"setName": "rs"
"setName": "rs",
"minWireVersion": 0,
"maxWireVersion": 6
}
]
],

View File

@ -13,7 +13,9 @@
"a:27017",
"b:27017"
],
"setName": "rs"
"setName": "rs",
"minWireVersion": 0,
"maxWireVersion": 6
}
]
],

View File

@ -14,7 +14,9 @@
"a:27017",
"b:27017"
],
"setName": "rs"
"setName": "rs",
"minWireVersion": 0,
"maxWireVersion": 6
}
]
],

View File

@ -8,7 +8,9 @@
"a:27017",
{
"ok": 1,
"ismaster": false
"ismaster": false,
"minWireVersion": 0,
"maxWireVersion": 6
}
]
],

View File

@ -8,7 +8,9 @@
"a:27017",
{
"ok": 1,
"ismaster": true
"ismaster": true,
"minWireVersion": 0,
"maxWireVersion": 6
}
]
],

View File

@ -9,7 +9,9 @@
{
"ok": 1,
"ismaster": true,
"localLogicalSessionTimeoutMinutes": 7
"localLogicalSessionTimeoutMinutes": 7,
"minWireVersion": 0,
"maxWireVersion": 6
}
]
],

Some files were not shown because too many files have changed in this diff Show More