Skip to content
This repository was archived by the owner on Feb 4, 2022. It is now read-only.

Commit af30e3d

Browse files
committed
chore(connection-string): sync connection string tests
NODE-1496
1 parent 1545fb6 commit af30e3d

File tree

7 files changed

+896
-883
lines changed

7 files changed

+896
-883
lines changed

test/tests/spec/connection-string/README.rst

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -12,30 +12,6 @@ a warning on repeated option keys. As such these YAML tests are in no way a
1212
replacement for more thorough testing. However, they can provide an initial
1313
verification of your implementation.
1414

15-
Converting to JSON
16-
------------------
17-
18-
The tests are written in YAML because it is easier for humans to write and read,
19-
and because YAML includes a standard comment format. A JSONified version of each
20-
YAML file is included in this repository. Whenever you change the YAML,
21-
re-convert to JSON. One method to convert to JSON is with
22-
`jsonwidget-python <http://jsonwidget.org/wiki/Jsonwidget-python>`_::
23-
24-
pip install PyYAML urwid jsonwidget
25-
make
26-
27-
Or instead of "make"::
28-
29-
for i in `find . -iname '*.yml'`; do
30-
echo "${i%.*}"
31-
jwc yaml2json $i > ${i%.*}.json
32-
done
33-
34-
Alternatively, you can use `yamljs <https://www.npmjs.com/package/yamljs>`_::
35-
36-
npm install -g yamljs
37-
yaml2json -s -p -r .
38-
3915
Version
4016
-------
4117

test/tests/spec/connection-string/invalid-uris.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ tests:
231231
hosts: ~
232232
auth: ~
233233
options: ~
234-
-
234+
-
235235
description: "Username with password containing an unescaped percent sign"
236236
uri: "mongodb://alice%foo:bar@127.0.0.1"
237237
valid: false

0 commit comments

Comments
 (0)