diff options
| author | Stephen Finucane <sfinucan@redhat.com> | 2021-11-17 11:31:55 +0000 |
|---|---|---|
| committer | Stephen Finucane <sfinucan@redhat.com> | 2021-11-17 11:42:07 +0000 |
| commit | 61fac5b79e2e4a4120046b2f830e4745bb383fb3 (patch) | |
| tree | 0500c6b57c84ae45445170c84e3456493d906510 /openstackclient/tests/unit/image | |
| parent | 1feb676469f7ccd6a022027bf2e1ecee9cf6d548 (diff) | |
| download | python-openstackclient-61fac5b79e2e4a4120046b2f830e4745bb383fb3.tar.gz | |
image: Sanity check the 'SetImage' command
This was a very difficult command to grok, due to the layering on of
additional features over the years. Make this a little easier to follow
by grouping related logic and making use of argparse features.
Change-Id: I4e1a0aed09ea5d6a8c26ec3e888c9c7b6cefc25a
Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
Diffstat (limited to 'openstackclient/tests/unit/image')
| -rw-r--r-- | openstackclient/tests/unit/image/v2/test_image.py | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/openstackclient/tests/unit/image/v2/test_image.py b/openstackclient/tests/unit/image/v2/test_image.py index 510976f7..7ccc9f0f 100644 --- a/openstackclient/tests/unit/image/v2/test_image.py +++ b/openstackclient/tests/unit/image/v2/test_image.py @@ -1007,9 +1007,7 @@ class TestImageSet(TestImage): self._image.id, ] verifylist = [ - ('accept', True), - ('reject', False), - ('pending', False), + ('membership', 'accepted'), ('image', self._image.id) ] @@ -1038,9 +1036,7 @@ class TestImageSet(TestImage): '0f41529e-7c12-4de8-be2d-181abb825b3c', ] verifylist = [ - ('accept', False), - ('reject', True), - ('pending', False), + ('membership', 'rejected'), ('image', '0f41529e-7c12-4de8-be2d-181abb825b3c') ] @@ -1069,9 +1065,7 @@ class TestImageSet(TestImage): '0f41529e-7c12-4de8-be2d-181abb825b3c', ] verifylist = [ - ('accept', False), - ('reject', False), - ('pending', True), + ('membership', 'pending'), ('image', '0f41529e-7c12-4de8-be2d-181abb825b3c') ] |
