...
1tests:
2 -
3 description: "Empty string"
4 uri: ""
5 valid: false
6 warning: ~
7 hosts: ~
8 auth: ~
9 options: ~
10 -
11 description: "Invalid scheme"
12 uri: "mongo://localhost:27017"
13 valid: false
14 warning: ~
15 hosts: ~
16 auth: ~
17 options: ~
18 -
19 description: "Missing host"
20 uri: "mongodb://"
21 valid: false
22 warning: ~
23 hosts: ~
24 auth: ~
25 options: ~
26 -
27 description: "Double colon in host identifier"
28 uri: "mongodb://localhost::27017"
29 valid: false
30 warning: ~
31 hosts: ~
32 auth: ~
33 options: ~
34 -
35 description: "Double colon in host identifier and trailing slash"
36 uri: "mongodb://localhost::27017/"
37 valid: false
38 warning: ~
39 hosts: ~
40 auth: ~
41 options: ~
42 -
43 description: "Double colon in host identifier with missing host and port"
44 uri: "mongodb://::"
45 valid: false
46 warning: ~
47 hosts: ~
48 auth: ~
49 options: ~
50 -
51 description: "Double colon in host identifier with missing port"
52 uri: "mongodb://localhost,localhost::"
53 valid: false
54 warning: ~
55 hosts: ~
56 auth: ~
57 options: ~
58 -
59 description: "Double colon in host identifier and second host"
60 uri: "mongodb://localhost::27017,abc"
61 valid: false
62 warning: ~
63 hosts: ~
64 auth: ~
65 options: ~
66 -
67 description: "Invalid port (negative number) with hostname"
68 uri: "mongodb://localhost:-1"
69 valid: false
70 warning: ~
71 hosts: ~
72 auth: ~
73 options: ~
74 -
75 description: "Invalid port (zero) with hostname"
76 uri: "mongodb://localhost:0/"
77 valid: false
78 warning: ~
79 hosts: ~
80 auth: ~
81 options: ~
82 -
83 description: "Invalid port (positive number) with hostname"
84 uri: "mongodb://localhost:65536"
85 valid: false
86 warning: ~
87 hosts: ~
88 auth: ~
89 options: ~
90 -
91 description: "Invalid port (positive number) with hostname and trailing slash"
92 uri: "mongodb://localhost:65536/"
93 valid: false
94 warning: ~
95 hosts: ~
96 auth: ~
97 options: ~
98 -
99 description: "Invalid port (non-numeric string) with hostname"
100 uri: "mongodb://localhost:foo"
101 valid: false
102 warning: ~
103 hosts: ~
104 auth: ~
105 options: ~
106 -
107 description: "Invalid port (negative number) with IP literal"
108 uri: "mongodb://[::1]:-1"
109 valid: false
110 warning: ~
111 hosts: ~
112 auth: ~
113 options: ~
114 -
115 description: "Invalid port (zero) with IP literal"
116 uri: "mongodb://[::1]:0/"
117 valid: false
118 warning: ~
119 hosts: ~
120 auth: ~
121 options: ~
122 -
123 description: "Invalid port (positive number) with IP literal"
124 uri: "mongodb://[::1]:65536"
125 valid: false
126 warning: ~
127 hosts: ~
128 auth: ~
129 options: ~
130 -
131 description: "Invalid port (positive number) with IP literal and trailing slash"
132 uri: "mongodb://[::1]:65536/"
133 valid: false
134 warning: ~
135 hosts: ~
136 auth: ~
137 options: ~
138 -
139 description: "Invalid port (non-numeric string) with IP literal"
140 uri: "mongodb://[::1]:foo"
141 valid: false
142 warning: ~
143 hosts: ~
144 auth: ~
145 options: ~
146 -
147 description: "Missing delimiting slash between hosts and options"
148 uri: "mongodb://example.com?w=1"
149 valid: false
150 warning: ~
151 hosts: ~
152 auth: ~
153 options: ~
154 -
155 description: "Incomplete key value pair for option"
156 uri: "mongodb://example.com/?w"
157 valid: false
158 warning: ~
159 hosts: ~
160 auth: ~
161 options: ~
162 -
163 description: "Username with password containing an unescaped colon"
164 uri: "mongodb://alice:foo:bar@127.0.0.1"
165 valid: false
166 warning: ~
167 hosts: ~
168 auth: ~
169 options: ~
170 -
171 description: "Username containing an unescaped at-sign"
172 uri: "mongodb://alice@@127.0.0.1"
173 valid: false
174 warning: ~
175 hosts: ~
176 auth: ~
177 options: ~
178 -
179 description: "Username with password containing an unescaped at-sign"
180 uri: "mongodb://alice@foo:bar@127.0.0.1"
181 valid: false
182 warning: ~
183 hosts: ~
184 auth: ~
185 options: ~
186 -
187 description: "Username containing an unescaped slash"
188 uri: "mongodb://alice/@localhost/db"
189 valid: false
190 warning: ~
191 hosts: ~
192 auth: ~
193 options: ~
194 -
195 description: "Username containing unescaped slash with password"
196 uri: "mongodb://alice/bob:foo@localhost/db"
197 valid: false
198 warning: ~
199 hosts: ~
200 auth: ~
201 options: ~
202 -
203 description: "Username with password containing an unescaped slash"
204 uri: "mongodb://alice:foo/bar@localhost/db"
205 valid: false
206 warning: ~
207 hosts: ~
208 auth: ~
209 options: ~
210 -
211 description: "Host with unescaped slash"
212 uri: "mongodb:///tmp/mongodb-27017.sock/"
213 valid: false
214 warning: ~
215 hosts: ~
216 auth: ~
217 options: ~
218 -
219 description: "mongodb+srv with multiple service names"
220 uri: "mongodb+srv://test5.test.mongodb.com,test6.test.mongodb.com"
221 valid: false
222 warning: ~
223 hosts: ~
224 auth: ~
225 options: ~
226 -
227 description: "mongodb+srv with port number"
228 uri: "mongodb+srv://test7.test.mongodb.com:27018"
229 valid: false
230 warning: ~
231 hosts: ~
232 auth: ~
233 options: ~
234 -
235 description: "Username with password containing an unescaped percent sign"
236 uri: "mongodb://alice%foo:bar@127.0.0.1"
237 valid: false
238 warning: ~
239 hosts: ~
240 auth: ~
241 options: ~
View as plain text