summaryrefslogtreecommitdiff
path: root/openstackclient/tests/image
diff options
context:
space:
mode:
authorNiallBunting <niall.bunting@hp.com>2015-09-22 09:59:30 +0000
committerSteve Martinelli <stevemar@ca.ibm.com>2015-09-23 00:31:41 -0400
commit8faabb3bbaa199cce8a52d6e6ed40b15e4a3a000 (patch)
treeb167b48c5b8796f8ee00966e0b615b85997bf512 /openstackclient/tests/image
parent2616fdb08980eb7651c235a59a5bf8d8e89830af (diff)
downloadpython-openstackclient-8faabb3bbaa199cce8a52d6e6ed40b15e4a3a000.tar.gz
Glance `image set` Resolve Fracturing
Currently `image set` uses the new api, where other parts of osc the old api is used. This deprecates the v2 api in favour of the v1 to maintain the same commands across osc. However the functionality now remains there as people could now be using this functionality. This also adds the --unprotected argument, as in the previous version if --protected was not supplied it would just make the argument --unprotected without the users explicit consent. The patch also fixes the documentation for image set as it was outdated. Change-Id: I990d20332c80165102badef7ac94ddbeb7824950 Closes-Bug: 1498092
Diffstat (limited to 'openstackclient/tests/image')
-rw-r--r--openstackclient/tests/image/v2/test_image.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/openstackclient/tests/image/v2/test_image.py b/openstackclient/tests/image/v2/test_image.py
index bfb94765..0c4aad27 100644
--- a/openstackclient/tests/image/v2/test_image.py
+++ b/openstackclient/tests/image/v2/test_image.py
@@ -527,8 +527,7 @@ class TestImageSet(TestImage):
'name': 'new-name',
'owner': 'new-owner',
'min_disk': 2,
- 'min_ram': 4,
- 'protected': False
+ 'min_ram': 4
}
# ImageManager.update(image, **kwargs)
self.images_mock.update.assert_called_with(