Skip to content

Commit 29ba150

Browse files
authored
Add spec tests for UNIX domain socket case sensitivity (#1227)
1 parent fc03859 commit 29ba150

File tree

4 files changed

+54
-0
lines changed

4 files changed

+54
-0
lines changed

src/test/spec/json/connection-string/valid-unix_socket-absolute.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,21 @@
3030
"auth": null,
3131
"options": null
3232
},
33+
{
34+
"description": "Unix domain socket (mixed case)",
35+
"uri": "mongodb://%2Ftmp%2FMongoDB-27017.sock",
36+
"valid": true,
37+
"warning": false,
38+
"hosts": [
39+
{
40+
"type": "unix",
41+
"host": "/tmp/MongoDB-27017.sock",
42+
"port": null
43+
}
44+
],
45+
"auth": null,
46+
"options": null
47+
},
3348
{
3449
"description": "Unix domain socket (absolute path with spaces in path)",
3550
"uri": "mongodb://%2Ftmp%2F %2Fmongodb-27017.sock",

src/test/spec/json/connection-string/valid-unix_socket-absolute.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,18 @@ tests:
2323
port: ~
2424
auth: ~
2525
options: ~
26+
-
27+
description: "Unix domain socket (mixed case)"
28+
uri: "mongodb://%2Ftmp%2FMongoDB-27017.sock"
29+
valid: true
30+
warning: false
31+
hosts:
32+
-
33+
type: "unix"
34+
host: "/tmp/MongoDB-27017.sock"
35+
port: ~
36+
auth: ~
37+
options: ~
2638
-
2739
description: "Unix domain socket (absolute path with spaces in path)"
2840
uri: "mongodb://%2Ftmp%2F %2Fmongodb-27017.sock"

src/test/spec/json/connection-string/valid-unix_socket-relative.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,21 @@
3030
"auth": null,
3131
"options": null
3232
},
33+
{
34+
"description": "Unix domain socket (mixed case)",
35+
"uri": "mongodb://rel%2FMongoDB-27017.sock",
36+
"valid": true,
37+
"warning": false,
38+
"hosts": [
39+
{
40+
"type": "unix",
41+
"host": "rel/MongoDB-27017.sock",
42+
"port": null
43+
}
44+
],
45+
"auth": null,
46+
"options": null
47+
},
3348
{
3449
"description": "Unix domain socket (relative path with spaces)",
3550
"uri": "mongodb://rel%2F %2Fmongodb-27017.sock",

src/test/spec/json/connection-string/valid-unix_socket-relative.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,18 @@ tests:
2323
port: ~
2424
auth: ~
2525
options: ~
26+
-
27+
description: "Unix domain socket (mixed case)"
28+
uri: "mongodb://rel%2FMongoDB-27017.sock"
29+
valid: true
30+
warning: false
31+
hosts:
32+
-
33+
type: "unix"
34+
host: "rel/MongoDB-27017.sock"
35+
port: ~
36+
auth: ~
37+
options: ~
2638
-
2739
description: "Unix domain socket (relative path with spaces)"
2840
uri: "mongodb://rel%2F %2Fmongodb-27017.sock"

0 commit comments

Comments
 (0)