Skip to content

Commit c955c26

Browse files
committed
New test case
Confirm that multiple unacceptable JSON keys are collected across various levels of the JSON tree.
1 parent 9e56039 commit c955c26

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

lib/pbench/test/unit/server/test_datasets_metadata.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -339,6 +339,17 @@ def test_put_no_dataset(self, client, server_config, attach_dataset):
339339
({"global": {"Ab.foo": True}}, "'Ab.foo'"),
340340
({"global": {"ab@": True}}, "'ab@'"),
341341
({"global": {"abc": {"#$": "bad key"}}}, "'#$'"),
342+
(
343+
{
344+
"global": {
345+
"a": {
346+
"#bad": {"still@bad": "ok", "good": True},
347+
".no": {"Yes": 0, "no?": 1},
348+
}
349+
}
350+
},
351+
"'#bad', '.no', 'Yes', 'no?', 'still@bad'",
352+
),
342353
({"global.AbC@foo=y": True}, "'global.AbC@foo=y'"),
343354
({"global..foo": True}, "'global..foo'"),
344355
),

0 commit comments

Comments
 (0)