tempest/tempest/tests/cmd/test_saved_state_json.json
Martin Kopec 6caf3fabbb Fix tempest cleanup for python3
When using python3 the file which is read and
loaded by jsonutils needs to be opened in binary
mode, otherwise, it's causing problems.
It is a known bug [1] in jsonutils from
oslo.serialization module.
The patch also adds a unit test which tests
the loading of a json file.

[1] https://bugs.launchpad.net/oslo.serialization/+bug/1515231

Closes-Bug: #1806089
Change-Id: I3db71c6662d9137a4b75381de7d6dbddd3de4e09
2019-02-07 14:43:05 +00:00

17 lines
251 B
JSON

{
"domains": {
"default": "Default"
},
"flavors": {
"1": "m1.tiny"
},
"images": {},
"projects": {
"268bcb63488b4aa2942ecaac0f85ed62": "demo"
},
"roles": {},
"users": {
"023e65a5922a454585a91c6af8310968": "demo"
}
}