summaryrefslogtreecommitdiff
path: root/openstackclient/tests/functional/image
diff options
context:
space:
mode:
authorRui Chen <chenrui.momo@gmail.com>2017-01-23 15:41:01 +0800
committerRui Chen <chenrui.momo@gmail.com>2017-02-21 07:35:02 +0000
commitc7e0948a2ded4a7486331bc306092c6425f1d0c5 (patch)
tree4573cc9ae90c5f29f5b5be726b85b9e8c805267c /openstackclient/tests/functional/image
parentbc4a3f467facecdb690f3bdbad3a6bbef1996778 (diff)
downloadpython-openstackclient-c7e0948a2ded4a7486331bc306092c6425f1d0c5.tar.gz
Rework port functional tests on json output format
Some functional tests try to parse the CLI table output format, that cause much work on parse string by using regular expression. Using json format in functional tests is better and easier way, the patch rework for port related tests. Change-Id: I0ec997bf63da4925742848c593db09d89655ca34
Diffstat (limited to 'openstackclient/tests/functional/image')
-rw-r--r--openstackclient/tests/functional/image/v2/test_image.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/openstackclient/tests/functional/image/v2/test_image.py b/openstackclient/tests/functional/image/v2/test_image.py
index 6faff94a..b6baf570 100644
--- a/openstackclient/tests/functional/image/v2/test_image.py
+++ b/openstackclient/tests/functional/image/v2/test_image.py
@@ -84,7 +84,7 @@ class ImageTests(base.TestCase):
self.openstack(
'image set --accept ' + self.NAME)
shared_img_list = self.parse_listing(
- self.openstack('image list --shared', self.get_opts(['name']))
+ self.openstack('image list --shared')
)
self.assertIn(self.NAME, [img['Name'] for img in shared_img_list])