summaryrefslogtreecommitdiff
path: root/openstackclient/tests/unit
diff options
context:
space:
mode:
authorZuul <zuul@review.opendev.org>2021-08-26 08:00:40 +0000
committerGerrit Code Review <review@openstack.org>2021-08-26 08:00:40 +0000
commit2c8981271421e494a217846530323ab121db7fd0 (patch)
treef270cd181271c553f4ad1fd9251427315e947eaa /openstackclient/tests/unit
parent4fc1ac2ce24478f65d58face3d28d5471071cb54 (diff)
parente0dc31f32eb6720059439e791713e2c61f81bf70 (diff)
downloadpython-openstackclient-2c8981271421e494a217846530323ab121db7fd0.tar.gz
Merge "volume: Add missing 'volume list --offset' parameter"
Diffstat (limited to 'openstackclient/tests/unit')
-rw-r--r--openstackclient/tests/unit/volume/v1/test_volume.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/openstackclient/tests/unit/volume/v1/test_volume.py b/openstackclient/tests/unit/volume/v1/test_volume.py
index de0c99c2..702f79ed 100644
--- a/openstackclient/tests/unit/volume/v1/test_volume.py
+++ b/openstackclient/tests/unit/volume/v1/test_volume.py
@@ -858,9 +858,10 @@ class TestVolumeList(TestVolume):
), )
self.assertCountEqual(datalist, tuple(data))
- def test_volume_list_with_limit(self):
+ def test_volume_list_with_limit_and_offset(self):
arglist = [
'--limit', '2',
+ '--offset', '5',
]
verifylist = [
('long', False),
@@ -868,6 +869,7 @@ class TestVolumeList(TestVolume):
('name', None),
('status', None),
('limit', 2),
+ ('offset', 5),
]
parsed_args = self.check_parser(self.cmd, arglist, verifylist)
@@ -876,9 +878,11 @@ class TestVolumeList(TestVolume):
self.volumes_mock.list.assert_called_once_with(
limit=2,
search_opts={
+ 'offset': 5,
'status': None,
'display_name': None,
- 'all_tenants': False, }
+ 'all_tenants': False,
+ },
)
self.assertEqual(self.columns, columns)
self.assertCountEqual(self.datalist, tuple(data))