...
1tests:
2 -
3 description: "Unix domain socket (absolute path with trailing slash)"
4 uri: "mongodb://%2Ftmp%2Fmongodb-27017.sock/"
5 valid: true
6 warning: false
7 hosts:
8 -
9 type: "unix"
10 host: "/tmp/mongodb-27017.sock"
11 port: ~
12 auth: ~
13 options: ~
14 -
15 description: "Unix domain socket (absolute path without trailing slash)"
16 uri: "mongodb://%2Ftmp%2Fmongodb-27017.sock"
17 valid: true
18 warning: false
19 hosts:
20 -
21 type: "unix"
22 host: "/tmp/mongodb-27017.sock"
23 port: ~
24 auth: ~
25 options: ~
26 -
27 description: "Unix domain socket (absolute path with spaces in path)"
28 uri: "mongodb://%2Ftmp%2F %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: ~
38 -
39 description: "Multiple Unix domain sockets (absolute paths)"
40 uri: "mongodb://%2Ftmp%2Fmongodb-27017.sock,%2Ftmp%2Fmongodb-27018.sock"
41 valid: true
42 warning: false
43 hosts:
44 -
45 type: "unix"
46 host: "/tmp/mongodb-27017.sock"
47 port: ~
48 -
49 type: "unix"
50 host: "/tmp/mongodb-27018.sock"
51 port: ~
52 auth: ~
53 options: ~
54 -
55 description: "Multiple hosts (absolute path and ipv4)"
56 uri: "mongodb://127.0.0.1:27017,%2Ftmp%2Fmongodb-27017.sock"
57 valid: true
58 warning: false
59 hosts:
60 -
61 type: "ipv4"
62 host: "127.0.0.1"
63 port: 27017
64 -
65 type: "unix"
66 host: "/tmp/mongodb-27017.sock"
67 port: ~
68 auth: ~
69 options: ~
70 -
71 description: "Multiple hosts (absolute path and hostname resembling relative path)"
72 uri: "mongodb://mongodb-27017.sock,%2Ftmp%2Fmongodb-27018.sock"
73 valid: true
74 warning: false
75 hosts:
76 -
77 type: "hostname"
78 host: "mongodb-27017.sock"
79 port: ~
80 -
81 type: "unix"
82 host: "/tmp/mongodb-27018.sock"
83 port: ~
84 auth: ~
85 options: ~
86 -
87 description: "Unix domain socket with auth database (absolute path)"
88 uri: "mongodb://alice:foo@%2Ftmp%2Fmongodb-27017.sock/admin"
89 valid: true
90 warning: false
91 hosts:
92 -
93 type: "unix"
94 host: "/tmp/mongodb-27017.sock"
95 port: ~
96 auth:
97 username: "alice"
98 password: "foo"
99 db: "admin"
100 options: ~
101 -
102 description: "Unix domain socket with path resembling socket file (absolute path with trailing slash)"
103 uri: "mongodb://%2Ftmp%2Fpath.to.sock%2Fmongodb-27017.sock/"
104 valid: true
105 warning: false
106 hosts:
107 -
108 type: "unix"
109 host: "/tmp/path.to.sock/mongodb-27017.sock"
110 port: ~
111 auth: ~
112 options: ~
113 -
114 description: "Unix domain socket with path resembling socket file (absolute path without trailing slash)"
115 uri: "mongodb://%2Ftmp%2Fpath.to.sock%2Fmongodb-27017.sock"
116 valid: true
117 warning: false
118 hosts:
119 -
120 type: "unix"
121 host: "/tmp/path.to.sock/mongodb-27017.sock"
122 port: ~
123 auth: ~
124 options: ~
125 -
126 description: "Unix domain socket with path resembling socket file and auth (absolute path)"
127 uri: "mongodb://bob:bar@%2Ftmp%2Fpath.to.sock%2Fmongodb-27017.sock/admin"
128 valid: true
129 warning: false
130 hosts:
131 -
132 type: "unix"
133 host: "/tmp/path.to.sock/mongodb-27017.sock"
134 port: ~
135 auth:
136 username: "bob"
137 password: "bar"
138 db: "admin"
139 options: ~
140 -
141 description: "Multiple Unix domain sockets and auth DB (absolute path)"
142 uri: "mongodb://%2Ftmp%2Fmongodb-27017.sock,%2Ftmp%2Fmongodb-27018.sock/admin"
143 valid: true
144 warning: false
145 hosts:
146 -
147 type: "unix"
148 host: "/tmp/mongodb-27017.sock"
149 port: ~
150 -
151 type: "unix"
152 host: "/tmp/mongodb-27018.sock"
153 port: ~
154 auth:
155 username: ~
156 password: ~
157 db: "admin"
158 options: ~
159 -
160 description: "Multiple Unix domain sockets with auth DB (absolute path)"
161 uri: "mongodb://%2Ftmp%2Fmongodb-27017.sock,%2Ftmp%2Fmongodb-27018.sock/admin"
162 valid: true
163 warning: false
164 hosts:
165 -
166 type: "unix"
167 host: "/tmp/mongodb-27017.sock"
168 port: ~
169 -
170 type: "unix"
171 host: "/tmp/mongodb-27018.sock"
172 port: ~
173 auth:
174 username: ~
175 password: ~
176 db: "admin"
177 options: ~
178 -
179 description: "Multiple Unix domain sockets with auth and query string (absolute path)"
180 uri: "mongodb://bob:bar@%2Ftmp%2Fmongodb-27017.sock,%2Ftmp%2Fmongodb-27018.sock/admin?w=1"
181 valid: true
182 warning: false
183 hosts:
184 -
185 type: "unix"
186 host: "/tmp/mongodb-27017.sock"
187 port: ~
188 -
189 type: "unix"
190 host: "/tmp/mongodb-27018.sock"
191 port: ~
192 auth:
193 username: "bob"
194 password: "bar"
195 db: "admin"
196 options:
197 w: 1
View as plain text