Add functional tests for volume set size

Change-Id: Ie369c6366e1d0632ab1892fd019f5b12528c195b
This commit is contained in:
TerryHowe 2015-06-11 13:45:35 -06:00
parent aac0d588bd
commit ebddb1005d

View File

@ -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)