diff options
| author | Zuul <zuul@review.openstack.org> | 2018-06-29 02:47:41 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2018-06-29 02:47:41 +0000 |
| commit | 7d7a429685ccca121304f1492da973a604a45788 (patch) | |
| tree | c80fc62754442edcf010b6cbb51be617de638172 /openstackclient/tests/unit | |
| parent | 3493948d13aadd1a329b37eb8fafb731b1f5c6a7 (diff) | |
| parent | 9edbab8c90bb74ba12892d0c77c8e8a99d4868fe (diff) | |
| download | python-openstackclient-7d7a429685ccca121304f1492da973a604a45788.tar.gz | |
Merge "Add ability to filter image list by tag"
Diffstat (limited to 'openstackclient/tests/unit')
| -rw-r--r-- | openstackclient/tests/unit/image/v2/test_image.py | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/openstackclient/tests/unit/image/v2/test_image.py b/openstackclient/tests/unit/image/v2/test_image.py index 301cd037..b769d1f6 100644 --- a/openstackclient/tests/unit/image/v2/test_image.py +++ b/openstackclient/tests/unit/image/v2/test_image.py @@ -779,6 +779,20 @@ class TestImageList(TestImage): status='active', marker=self._image.id ) + def test_image_list_tag_option(self): + arglist = [ + '--tag', 'abc', + ] + verifylist = [ + ('tag', 'abc'), + ] + parsed_args = self.check_parser(self.cmd, arglist, verifylist) + + columns, data = self.cmd.take_action(parsed_args) + self.api_mock.image_list.assert_called_with( + tag='abc', marker=self._image.id + ) + class TestListImageProjects(TestImage): |
