@@ -12,41 +12,11 @@ a warning on repeated option keys. As such these YAML tests are in no way a
12
12
replacement for more thorough testing. However, they can provide an initial
13
13
verification of your implementation.
14
14
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
-
39
15
Version
40
16
-------
41
17
42
18
Files in the "specifications" repository have no version scheme. They are not
43
- tied to a MongoDB server version, and it is our intention that each
44
- specification moves from "draft" to "final" with no further versions; it is
45
- superseded by a future spec, not revised.
46
-
47
- However, implementers must have stable sets of tests to target. As test files
48
- evolve they will be occasionally tagged like "uri-tests-tests-2015-07-16", until
49
- the spec is final.
19
+ tied to a MongoDB server version.
50
20
51
21
Format
52
22
------
@@ -72,7 +42,7 @@ array of test case objects, each of which have the following keys:
72
42
(as discussed in `RFC 2396 <https://www.ietf.org/rfc/rfc2396.txt >`_).
73
43
- ``password ``: A string containing the parsed password.
74
44
- ``db ``: A string containing the parsed authentication database. For legacy
75
- implementations that support namespaces (databases and collections) this may
45
+ implementations that support namespaces (databases and collections) this may
76
46
be the full namespace eg: ``<db>.<coll> ``
77
47
- ``options ``: An object containing key/value pairs for each parsed query string
78
48
option.
0 commit comments