summaryrefslogtreecommitdiff
path: root/openstackclient/tests
diff options
context:
space:
mode:
authorNiallBunting <niall.bunting@hp.com>2015-09-25 13:21:01 +0000
committerNiallBunting <niall.bunting@hp.com>2015-11-06 10:43:08 +0000
commit5ad59968ac4257c76aec9bd62c417fe8b5403608 (patch)
treed129ecad5b6f53b13fccd1f8580b1934dda6e93b /openstackclient/tests
parent8a1fb85dba6963dee974f896fa9cc345c3a3aff5 (diff)
downloadpython-openstackclient-5ad59968ac4257c76aec9bd62c417fe8b5403608.tar.gz
Add --owner to `image create`
This adds --owner to `image create`. This is backwards compatable with v1. Change-Id: I9e79cf880c91a1386419db729818d23dfe632179 Depends-On: I8d572a070bbb04dccdd051b8e0ad199c5754746e
Diffstat (limited to 'openstackclient/tests')
-rw-r--r--openstackclient/tests/image/v2/test_image.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/openstackclient/tests/image/v2/test_image.py b/openstackclient/tests/image/v2/test_image.py
index 4ce85475..b35fda79 100644
--- a/openstackclient/tests/image/v2/test_image.py
+++ b/openstackclient/tests/image/v2/test_image.py
@@ -112,6 +112,7 @@ class TestImageCreate(TestImage):
'--disk-format', 'fs',
'--min-disk', '10',
'--min-ram', '4',
+ '--owner', '123456',
'--protected',
'--private',
image_fakes.image_name,
@@ -121,6 +122,7 @@ class TestImageCreate(TestImage):
('disk_format', 'fs'),
('min_disk', 10),
('min_ram', 4),
+ ('owner', '123456'),
('protected', True),
('unprotected', False),
('public', False),
@@ -139,6 +141,7 @@ class TestImageCreate(TestImage):
disk_format='fs',
min_disk=10,
min_ram=4,
+ owner='123456',
protected=True,
visibility='private',
)
@@ -213,11 +216,10 @@ class TestImageCreate(TestImage):
def test_image_create_dead_options(self):
arglist = [
- '--owner', 'nobody',
+ '--store', 'somewhere',
image_fakes.image_name,
]
verifylist = [
- ('owner', 'nobody'),
('name', image_fakes.image_name),
]
parsed_args = self.check_parser(self.cmd, arglist, verifylist)