Add functional test for "aggregate unset" command
There was not functional test for "aggregate unset" command, this patch add the test. Change-Id: Icc8f51e863231e915b2a8cca59baaedd54a96de5
This commit is contained in:
@@ -57,3 +57,11 @@ class AggregateTests(test.TestCase):
|
|||||||
|
|
||||||
raw_output = self.openstack('aggregate show ' + self.NAME + opts)
|
raw_output = self.openstack('aggregate show ' + self.NAME + opts)
|
||||||
self.assertIn("a='b', c='d'\n", raw_output)
|
self.assertIn("a='b', c='d'\n", raw_output)
|
||||||
|
|
||||||
|
raw_output = self.openstack(
|
||||||
|
'aggregate unset --property a ' + self.NAME
|
||||||
|
)
|
||||||
|
self.assertEqual('', raw_output)
|
||||||
|
|
||||||
|
raw_output = self.openstack('aggregate show ' + self.NAME + opts)
|
||||||
|
self.assertIn("c='d'\n", raw_output)
|
||||||
|
Reference in New Issue
Block a user