From 83f5befc5e69700c36a5f7b032ea229d6b0fdf82 Mon Sep 17 00:00:00 2001 From: TerryHowe Date: Thu, 11 Jun 2015 08:37:35 -0600 Subject: [PATCH] Add functional tests for flavor metadata Change-Id: Iae7a3f61c0c9777ee2511558d8942243066a8c60 --- functional/tests/compute/v2/test_flavor.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/functional/tests/compute/v2/test_flavor.py b/functional/tests/compute/v2/test_flavor.py index 1ce2abd7ac..becf217f6c 100644 --- a/functional/tests/compute/v2/test_flavor.py +++ b/functional/tests/compute/v2/test_flavor.py @@ -44,3 +44,13 @@ class FlavorTests(test.TestCase): opts = self.get_show_opts(self.FIELDS) raw_output = self.openstack('flavor show ' + self.NAME + opts) self.assertEqual(self.NAME + "\n", raw_output) + + def test_flavor_properties(self): + opts = self.get_show_opts(["properties"]) + raw_output = self.openstack( + 'flavor set --property a=b --property c=d ' + self.NAME + opts) + self.assertEqual("a='b', c='d'\n", raw_output) + + raw_output = self.openstack('flavor unset --property a ' + + self.NAME + opts) + self.assertEqual("c='d'\n", raw_output)