summaryrefslogtreecommitdiff
path: root/src/mongo/client/mongo_uri_tests
diff options
context:
space:
mode:
authorADAM David Alan Martin <adam.martin@10gen.com>2017-10-31 15:49:49 -0400
committerADAM David Alan Martin <adam.martin@10gen.com>2017-10-31 15:49:49 -0400
commit400b86d2963b30730cccfe7ae6829e6101998ac8 (patch)
tree2741ecc5a785e60afc80e4d76ec1fa9f15144b5d /src/mongo/client/mongo_uri_tests
parent2a8818d4fd7b833b82997c9996aca9eb14471f09 (diff)
downloadmongo-400b86d2963b30730cccfe7ae6829e6101998ac8.tar.gz
SERVER-31061 Add `mongo+srv://` support for URIs.
The shell now supports parsing and handling `mongo+srv://` style URIs, as part of the DNS Seedlist support. These URIs require DNS SRV and TXT record lookups, for extra configuration options. The shell also supports a (limited) form of connection-failover -- when initially connecting to a non-replica-set cluster, the shell will try each host listed, in order, until a connection can be established.
Diffstat (limited to 'src/mongo/client/mongo_uri_tests')
-rw-r--r--src/mongo/client/mongo_uri_tests/mongo-uri-host-identifiers.json6
-rw-r--r--src/mongo/client/mongo_uri_tests/mongo-uri-unix-sockets-absolute.json10
-rw-r--r--src/mongo/client/mongo_uri_tests/mongo-uri-unix-sockets-relative.json14
-rw-r--r--src/mongo/client/mongo_uri_tests/mongo-uri-valid-auth.json4
4 files changed, 17 insertions, 17 deletions
diff --git a/src/mongo/client/mongo_uri_tests/mongo-uri-host-identifiers.json b/src/mongo/client/mongo_uri_tests/mongo-uri-host-identifiers.json
index 8a1fda580a8..5af3797ccdb 100644
--- a/src/mongo/client/mongo_uri_tests/mongo-uri-host-identifiers.json
+++ b/src/mongo/client/mongo_uri_tests/mongo-uri-host-identifiers.json
@@ -108,7 +108,7 @@
{
"description": "Multiple hosts (mixed formats)",
"uri": "mongodb://127.0.0.1,[::1]:27018,example.com:27019",
- "valid": false,
+ "valid": true,
"warning": false,
"hosts": [
{
@@ -160,7 +160,7 @@
{
"description": "UTF-8 hosts",
"uri": "mongodb://bücher.example.com,umläut.example.com/",
- "valid": false,
+ "valid": true,
"warning": false,
"hosts": [
{
@@ -200,4 +200,4 @@
}
}
]
-} \ No newline at end of file
+}
diff --git a/src/mongo/client/mongo_uri_tests/mongo-uri-unix-sockets-absolute.json b/src/mongo/client/mongo_uri_tests/mongo-uri-unix-sockets-absolute.json
index d167c315bbc..f4f78883298 100644
--- a/src/mongo/client/mongo_uri_tests/mongo-uri-unix-sockets-absolute.json
+++ b/src/mongo/client/mongo_uri_tests/mongo-uri-unix-sockets-absolute.json
@@ -62,7 +62,7 @@
],
"options": null,
"uri": "mongodb://%2Ftmp%2Fmongodb-27017.sock,%2Ftmp%2Fmongodb-27018.sock",
- "valid": false,
+ "valid": true,
"warning": false
},
{
@@ -82,7 +82,7 @@
],
"options": null,
"uri": "mongodb://127.0.0.1:27017,%2Ftmp%2Fmongodb-27017.sock",
- "valid": false,
+ "valid": true,
"warning": false
},
{
@@ -102,7 +102,7 @@
],
"options": null,
"uri": "mongodb://mongodb-27017.sock,%2Ftmp%2Fmongodb-27018.sock",
- "valid": false,
+ "valid": true,
"warning": false
},
{
@@ -260,7 +260,7 @@
],
"options": null,
"uri": "mongodb://%2Ftmp%2Fmongodb-27017.sock,%2Ftmp%2Fmongodb-27018.sock/admin",
- "valid": false,
+ "valid": true,
"warning": false
},
{
@@ -312,7 +312,7 @@
"w": 1
},
"uri": "mongodb://bob:bar@%2Ftmp%2Fmongodb-27017.sock,%2Ftmp%2Fmongodb-27018.sock/admin?w=1",
- "valid": false,
+ "valid": true,
"warning": false
},
{
diff --git a/src/mongo/client/mongo_uri_tests/mongo-uri-unix-sockets-relative.json b/src/mongo/client/mongo_uri_tests/mongo-uri-unix-sockets-relative.json
index 8da45c4e1b9..a2d737ba72a 100644
--- a/src/mongo/client/mongo_uri_tests/mongo-uri-unix-sockets-relative.json
+++ b/src/mongo/client/mongo_uri_tests/mongo-uri-unix-sockets-relative.json
@@ -62,7 +62,7 @@
],
"options": null,
"uri": "mongodb://rel%2Fmongodb-27017.sock,rel%2Fmongodb-27018.sock",
- "valid": false,
+ "valid": true,
"warning": false
},
{
@@ -104,7 +104,7 @@
],
"options": null,
"uri": "mongodb://rel%2Fmongodb-27017.sock,%2Ftmp%2Fmongodb-27018.sock",
- "valid": false,
+ "valid": true,
"warning": false
},
{
@@ -146,7 +146,7 @@
],
"options": null,
"uri": "mongodb://127.0.0.1:27017,rel%2Fmongodb-27017.sock",
- "valid": false,
+ "valid": true,
"warning": false
},
{
@@ -188,7 +188,7 @@
],
"options": null,
"uri": "mongodb://mongodb-27017.sock,rel%2Fmongodb-27018.sock",
- "valid": false,
+ "valid": true,
"warning": false
},
{
@@ -302,7 +302,7 @@
],
"options": null,
"uri": "mongodb://rel%2Fmongodb-27017.sock,rel%2Fmongodb-27018.sock/admin",
- "valid": false,
+ "valid": true,
"warning": false
},
{
@@ -352,7 +352,7 @@
],
"options": null,
"uri": "mongodb://rel%2Fmongodb-27017.sock,rel%2Fmongodb-27018.sock/admin",
- "valid": false,
+ "valid": true,
"warning": false
},
{
@@ -404,7 +404,7 @@
"w": 1
},
"uri": "mongodb://bob:bar@rel%2Fmongodb-27017.sock,rel%2Fmongodb-27018.sock/admin?w=1",
- "valid": false,
+ "valid": true,
"warning": false
},
{
diff --git a/src/mongo/client/mongo_uri_tests/mongo-uri-valid-auth.json b/src/mongo/client/mongo_uri_tests/mongo-uri-valid-auth.json
index a44236e7b62..68228c6ddec 100644
--- a/src/mongo/client/mongo_uri_tests/mongo-uri-valid-auth.json
+++ b/src/mongo/client/mongo_uri_tests/mongo-uri-valid-auth.json
@@ -135,7 +135,7 @@
],
"options": null,
"uri": "mongodb://alice:secret@127.0.0.1,example.com:27018",
- "valid": false,
+ "valid": true,
"warning": false
},
{
@@ -159,7 +159,7 @@
],
"options": null,
"uri": "mongodb://alice:secret@example.com,[::1]:27019/admin",
- "valid": false,
+ "valid": true,
"warning": false
},
{