Merge "Add functional tests for volume set size"
This commit is contained in:
commit
dfa80ee9c0
@ -69,3 +69,10 @@ class VolumeTests(test.TestCase):
|
|||||||
opts = self.get_show_opts(["display_description", "display_name"])
|
opts = self.get_show_opts(["display_description", "display_name"])
|
||||||
raw_output = self.openstack('volume show ' + self.NAME + opts)
|
raw_output = self.openstack('volume show ' + self.NAME + opts)
|
||||||
self.assertEqual("RAMAC\n" + self.NAME + "\n", raw_output)
|
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…
Reference in New Issue
Block a user