diff options
author | whoami-rajat <rajatdhasmana@gmail.com> | 2022-04-20 11:30:16 +0530 |
---|---|---|
committer | whoami-rajat <rajatdhasmana@gmail.com> | 2022-04-21 14:34:42 +0530 |
commit | cf7504e79564e85d4d4a1b51510e48e8d4a85e1c (patch) | |
tree | 0ed63db8857f3a0721384f3fbe269f721e465537 /glanceclient | |
parent | 2bb489fe967f777c1734bd3af033e48174340557 (diff) | |
download | python-glanceclient-cf7504e79564e85d4d4a1b51510e48e8d4a85e1c.tar.gz |
Add doc and test for verbose parameter
We currently have support to show verbose output for image-list
with the command ``glance --verbose image-list`` but there is
no documentation about it.
This patch adds the documentation and a test to run it via CLI.
Closes-Bug: #1969565
Change-Id: Ic6db4f5ab2fecded373b044aa002f9a9bc262513
Diffstat (limited to 'glanceclient')
-rw-r--r-- | glanceclient/tests/unit/v2/test_shell_v2.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/glanceclient/tests/unit/v2/test_shell_v2.py b/glanceclient/tests/unit/v2/test_shell_v2.py index 9d38416..c24a1c9 100644 --- a/glanceclient/tests/unit/v2/test_shell_v2.py +++ b/glanceclient/tests/unit/v2/test_shell_v2.py @@ -368,6 +368,12 @@ class ShellV2Test(testtools.TestCase): {}, ['ID', 'Name', 'Disk_format', 'Container_format', 'Size', 'Status', 'Owner']) + def test_do_image_list_verbose_cmd(self): + self._run_command('--os-image-api-version 2 --verbose image-list') + utils.print_list.assert_called_once_with( + mock.ANY, ['ID', 'Name', 'Disk_format', 'Container_format', + 'Size', 'Status', 'Owner']) + def test_do_image_list_with_include_stores_true(self): input = { 'limit': None, |