Merge "Add functional tests for volume set size"

This commit is contained in:
Jenkins 2015-07-06 18:52:17 +00:00 committed by Gerrit Code Review
commit dfa80ee9c0

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)