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