{
"tests": [
{
"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.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
},
{
"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",
"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
}
]
}