summaryrefslogtreecommitdiff
path: root/functional
diff options
context:
space:
mode:
Diffstat (limited to 'functional')
-rw-r--r--functional/tests/image/v2/test_image.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/functional/tests/image/v2/test_image.py b/functional/tests/image/v2/test_image.py
index f0ebc116..6a33ad88 100644
--- a/functional/tests/image/v2/test_image.py
+++ b/functional/tests/image/v2/test_image.py
@@ -65,3 +65,12 @@ class ImageTests(test.TestCase):
self.openstack('image set --property a=b --property c=d ' + self.NAME)
raw_output = self.openstack('image show ' + self.NAME + opts)
self.assertEqual(self.NAME + "\na='b', c='d'\n", raw_output)
+
+ def test_image_unset(self):
+ opts = self.get_show_opts(["name", "tags", "properties"])
+ self.openstack('image set --tag 01 ' + self.NAME)
+ self.openstack('image unset --tag 01 ' + self.NAME)
+ # test_image_metadata has set image properties "a" and "c"
+ self.openstack('image unset --property a --property c ' + self.NAME)
+ raw_output = self.openstack('image show ' + self.NAME + opts)
+ self.assertEqual(self.NAME + "\n\n", raw_output)