diff options
| author | Huanxuan Ao <huanxuan.ao@easystack.cn> | 2016-06-16 16:41:25 +0800 |
|---|---|---|
| committer | Huanxuan Ao <huanxuan.ao@easystack.cn> | 2016-06-16 16:41:25 +0800 |
| commit | 2d4a585841f031343c8586543b4573cc0967e9c2 (patch) | |
| tree | e815d948d89692673dd90fbcd96a523e52e010bb /functional | |
| parent | 114eeeb0236d29a325abbf13b41a9a385746b367 (diff) | |
| download | python-openstackclient-2d4a585841f031343c8586543b4573cc0967e9c2.tar.gz | |
Add functional test for "aggregate unset" command
There was not functional test for "aggregate unset"
command, this patch add the test.
Change-Id: Icc8f51e863231e915b2a8cca59baaedd54a96de5
Diffstat (limited to 'functional')
| -rw-r--r-- | functional/tests/compute/v2/test_aggregate.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/functional/tests/compute/v2/test_aggregate.py b/functional/tests/compute/v2/test_aggregate.py index b4d27fae..2ad65599 100644 --- a/functional/tests/compute/v2/test_aggregate.py +++ b/functional/tests/compute/v2/test_aggregate.py @@ -57,3 +57,11 @@ class AggregateTests(test.TestCase): raw_output = self.openstack('aggregate show ' + self.NAME + opts) 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) |
