From 8e6772c36fdb99ca763d08eb2d91699376b4807f Mon Sep 17 00:00:00 2001 From: Akihiro Motoki Date: Mon, 15 May 2017 04:00:53 +0000 Subject: 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 --- openstackclient/tests/functional/image/v1/test_image.py | 2 +- openstackclient/tests/functional/image/v2/test_image.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'openstackclient/tests/functional/image') 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"], ) -- cgit v1.2.1