Skip to content

Commit 2d4a585

Browse files
author
Huanxuan Ao
committed
Add functional test for "aggregate unset" command
There was not functional test for "aggregate unset" command, this patch add the test. Change-Id: Icc8f51e863231e915b2a8cca59baaedd54a96de5
1 parent 114eeeb commit 2d4a585

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

functional/tests/compute/v2/test_aggregate.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,3 +57,11 @@ def test_aggregate_properties(self):
5757

5858
raw_output = self.openstack('aggregate show ' + self.NAME + opts)
5959
self.assertIn("a='b', c='d'\n", raw_output)
60+
61+
raw_output = self.openstack(
62+
'aggregate unset --property a ' + self.NAME
63+
)
64+
self.assertEqual('', raw_output)
65+
66+
raw_output = self.openstack('aggregate show ' + self.NAME + opts)
67+
self.assertIn("c='d'\n", raw_output)

0 commit comments

Comments
 (0)