From 2d4a585841f031343c8586543b4573cc0967e9c2 Mon Sep 17 00:00:00 2001 From: Huanxuan Ao Date: Thu, 16 Jun 2016 16:41:25 +0800 Subject: [PATCH] Add functional test for "aggregate unset" command There was not functional test for "aggregate unset" command, this patch add the test. Change-Id: Icc8f51e863231e915b2a8cca59baaedd54a96de5 --- functional/tests/compute/v2/test_aggregate.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/functional/tests/compute/v2/test_aggregate.py b/functional/tests/compute/v2/test_aggregate.py index b4d27fae0c..2ad6559904 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)