diff options
| author | Rui Chen <chenrui.momo@gmail.com> | 2017-01-23 15:41:01 +0800 |
|---|---|---|
| committer | Rui Chen <chenrui.momo@gmail.com> | 2017-02-21 07:35:02 +0000 |
| commit | c7e0948a2ded4a7486331bc306092c6425f1d0c5 (patch) | |
| tree | 4573cc9ae90c5f29f5b5be726b85b9e8c805267c /openstackclient/tests/functional/image | |
| parent | bc4a3f467facecdb690f3bdbad3a6bbef1996778 (diff) | |
| download | python-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.py | 2 |
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]) |
