mirror of
https://opendev.org/openstack/python-openstackclient.git
synced 2026-01-17 15:31:03 +00:00
Add functional tests for volume set size
Change-Id: Ie369c6366e1d0632ab1892fd019f5b12528c195b
This commit is contained in:
parent
aac0d588bd
commit
ebddb1005d
1 changed files with 7 additions and 0 deletions
|
|
@ -69,3 +69,10 @@ class VolumeTests(test.TestCase):
|
|||
opts = self.get_show_opts(["display_description", "display_name"])
|
||||
raw_output = self.openstack('volume show ' + self.NAME + opts)
|
||||
self.assertEqual("RAMAC\n" + self.NAME + "\n", raw_output)
|
||||
|
||||
def test_volume_set_size(self):
|
||||
raw_output = self.openstack(
|
||||
'volume set --size 2 ' + self.NAME)
|
||||
opts = self.get_show_opts(["display_name", "size"])
|
||||
raw_output = self.openstack('volume show ' + self.NAME + opts)
|
||||
self.assertEqual(self.NAME + "\n2\n", raw_output)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue