summaryrefslogtreecommitdiffstats
path: root/tests/run-tests.py
diff options
context:
space:
mode:
authorJavier Sanchez Parra <jsanchez@soleta.eu>2020-02-26 10:42:18 +0100
committerAlvaro Neira Ayuso <aneira@soleta.eu>2020-02-26 17:55:03 +0100
commit8e81b8091ebabd7b98e443432d3a7f5044ed2538 (patch)
tree748e512ae42e654879ef18771098d9271ad138ae /tests/run-tests.py
parentbb9ec5d7a55bff675e0aa0afa150171d098b3968 (diff)
Search the key in the parsed json
Testing the ogClient I found that if a value of the json match a key the ogClient has an exception. For example: body = "... shell/run {"run": "fdisk -l"} ..." CURRENT Enters in if "disk" in body:... if "run" in body:... EXPECTED Enters in if "run" in body:... This commit changes the behaviour to search for the keys in the dictionary returned by json.loads() instead of searching in the raw string. This way the ogClient looks for the keys without searching in the values.
Diffstat (limited to 'tests/run-tests.py')
0 files changed, 0 insertions, 0 deletions