diff options
| author | Jenkins <jenkins@review.openstack.org> | 2016-05-30 04:39:34 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2016-05-30 04:39:34 +0000 |
| commit | d532e3b5f24a462846743f2866666b7b58aa2041 (patch) | |
| tree | 63b262f1a34628413e19cc8af4ff2a3b0fed391d /functional | |
| parent | 4822bf1f53c2a5bda889050898914aa535289856 (diff) | |
| parent | 3e11661074e1a7e051e0ebff5800f8f1aac85153 (diff) | |
| download | python-openstackclient-d532e3b5f24a462846743f2866666b7b58aa2041.tar.gz | |
Merge "Add "image unset" command"
Diffstat (limited to 'functional')
| -rw-r--r-- | functional/tests/image/v2/test_image.py | 9 |
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) |
