Skip to content

Commit

Permalink
New test case
Browse files Browse the repository at this point in the history
Confirm that multiple unacceptable JSON keys are collected across various
levels of the JSON tree.
  • Loading branch information
dbutenhof committed Mar 22, 2023
1 parent 9e56039 commit c955c26
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions lib/pbench/test/unit/server/test_datasets_metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -339,6 +339,17 @@ def test_put_no_dataset(self, client, server_config, attach_dataset):
({"global": {"Ab.foo": True}}, "'Ab.foo'"),
({"global": {"ab@": True}}, "'ab@'"),
({"global": {"abc": {"#$": "bad key"}}}, "'#$'"),
(
{
"global": {
"a": {
"#bad": {"still@bad": "ok", "good": True},
".no": {"Yes": 0, "no?": 1},
}
}
},
"'#bad', '.no', 'Yes', 'no?', 'still@bad'",
),
({"global.AbC@foo=y": True}, "'global.AbC@foo=y'"),
({"global..foo": True}, "'global..foo'"),
),
Expand Down

0 comments on commit c955c26

Please sign in to comment.