diff options
| author | Adam Harwell <flux.adam@gmail.com> | 2018-06-13 15:22:17 -0700 |
|---|---|---|
| committer | Dean Troyer <dtroyer@gmail.com> | 2018-06-28 16:17:14 +0000 |
| commit | 9edbab8c90bb74ba12892d0c77c8e8a99d4868fe (patch) | |
| tree | c3ad00871aaea7cba714868919b7bc61838b78c8 /openstackclient/tests/unit/image/v2 | |
| parent | 9766eb23e797935fcafa4990b46cedde83b19fc6 (diff) | |
| download | python-openstackclient-9edbab8c90bb74ba12892d0c77c8e8a99d4868fe.tar.gz | |
Add ability to filter image list by tag
Change-Id: I2e222d3e69df9d8d7cd472663caaee31bedd848c
Diffstat (limited to 'openstackclient/tests/unit/image/v2')
| -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): |
