summaryrefslogtreecommitdiff
path: root/openstackclient/tests/functional/image
diff options
context:
space:
mode:
authorAkihiro Motoki <amotoki@gmail.com>2017-05-15 04:00:53 +0000
committerAkihiro Motoki <amotoki@gmail.com>2017-08-16 15:41:45 +0000
commit8e6772c36fdb99ca763d08eb2d91699376b4807f (patch)
tree99a2960adb62b2e6e0d64ccb727df74726474d20 /openstackclient/tests/functional/image
parent07f5498842834823ec911811e6e9c8ba9ff4ac9b (diff)
downloadpython-openstackclient-8e6772c36fdb99ca763d08eb2d91699376b4807f.tar.gz
Use cliff formattable columns in image commands
Related functional tests are converted into JSON format. Otherwise, it is not easy to check results. Partial-Bug: #1687955 Partially implement blueprint osc-formattable-columns Change-Id: I682e67be24372c0de145f8db20911b13530ae6c6
Diffstat (limited to 'openstackclient/tests/functional/image')
-rw-r--r--openstackclient/tests/functional/image/v1/test_image.py2
-rw-r--r--openstackclient/tests/functional/image/v2/test_image.py6
2 files changed, 4 insertions, 4 deletions
diff --git a/openstackclient/tests/functional/image/v1/test_image.py b/openstackclient/tests/functional/image/v1/test_image.py
index fa073f99..46b22134 100644
--- a/openstackclient/tests/functional/image/v1/test_image.py
+++ b/openstackclient/tests/functional/image/v1/test_image.py
@@ -107,6 +107,6 @@ class ImageTests(base.TestCase):
self.NAME
))
self.assertEqual(
- "a='b', c='d'",
+ {'a': 'b', 'c': 'd'},
json_output["properties"],
)
diff --git a/openstackclient/tests/functional/image/v2/test_image.py b/openstackclient/tests/functional/image/v2/test_image.py
index 278ba5b9..3ba2b51c 100644
--- a/openstackclient/tests/functional/image/v2/test_image.py
+++ b/openstackclient/tests/functional/image/v2/test_image.py
@@ -122,7 +122,7 @@ class ImageTests(base.TestCase):
self.NAME
))
self.assertEqual(
- "a='b', c='d'",
+ {'a': 'b', 'c': 'd'},
json_output["properties"],
)
@@ -152,7 +152,7 @@ class ImageTests(base.TestCase):
self.NAME
))
self.assertEqual(
- '01',
+ ['01'],
json_output["tags"],
)
@@ -166,7 +166,7 @@ class ImageTests(base.TestCase):
self.NAME
))
self.assertEqual(
- '',
+ [],
json_output["tags"],
)