summaryrefslogtreecommitdiff
path: root/openstackclient/tests
diff options
context:
space:
mode:
authorTerryHowe <terrylhowe@gmail.com>2015-07-06 11:22:05 -0600
committerTerry Howe <terrylhowe@gmail.com>2015-07-17 14:14:56 +0000
commitabfb0115277471dd584daed18e09eeecf768b527 (patch)
tree10d2add86c8a1932a9067724108c78a51b79fe1e /openstackclient/tests
parentbbe71eb9a310c67f6c8a1b8da1b2fb2ec37fd3ab (diff)
downloadpython-openstackclient-abfb0115277471dd584daed18e09eeecf768b527.tar.gz
Support multiple volume qos delete
Also make sure that we are using the singular qos_spec when we should and the plural qos_specs otherwise. Change-Id: If4bbeb6fc245d7d80dc3d7dccfe9f949e802653c
Diffstat (limited to 'openstackclient/tests')
-rw-r--r--openstackclient/tests/volume/v1/test_qos_specs.py16
-rw-r--r--openstackclient/tests/volume/v2/test_qos_specs.py16
2 files changed, 16 insertions, 16 deletions
diff --git a/openstackclient/tests/volume/v1/test_qos_specs.py b/openstackclient/tests/volume/v1/test_qos_specs.py
index 226fe673..c2e6c0af 100644
--- a/openstackclient/tests/volume/v1/test_qos_specs.py
+++ b/openstackclient/tests/volume/v1/test_qos_specs.py
@@ -56,7 +56,7 @@ class TestQosAssociate(TestQos):
volume_fakes.type_id
]
verifylist = [
- ('qos_specs', volume_fakes.qos_id),
+ ('qos_spec', volume_fakes.qos_id),
('volume_type', volume_fakes.type_id)
]
parsed_args = self.check_parser(self.cmd, arglist, verifylist)
@@ -210,7 +210,7 @@ class TestQosDelete(TestQos):
volume_fakes.qos_id
]
verifylist = [
- ('qos_specs', volume_fakes.qos_id)
+ ('qos_specs', [volume_fakes.qos_id])
]
parsed_args = self.check_parser(self.cmd, arglist, verifylist)
@@ -223,7 +223,7 @@ class TestQosDelete(TestQos):
volume_fakes.qos_name
]
verifylist = [
- ('qos_specs', volume_fakes.qos_name)
+ ('qos_specs', [volume_fakes.qos_name])
]
parsed_args = self.check_parser(self.cmd, arglist, verifylist)
@@ -255,7 +255,7 @@ class TestQosDisassociate(TestQos):
'--volume-type', volume_fakes.type_id
]
verifylist = [
- ('qos_specs', volume_fakes.qos_id),
+ ('qos_spec', volume_fakes.qos_id),
('volume_type', volume_fakes.type_id)
]
parsed_args = self.check_parser(self.cmd, arglist, verifylist)
@@ -278,7 +278,7 @@ class TestQosDisassociate(TestQos):
'--all'
]
verifylist = [
- ('qos_specs', volume_fakes.qos_id)
+ ('qos_spec', volume_fakes.qos_id)
]
parsed_args = self.check_parser(self.cmd, arglist, verifylist)
@@ -351,7 +351,7 @@ class TestQosSet(TestQos):
'--property', 'iops=9001'
]
verifylist = [
- ('qos_specs', volume_fakes.qos_id),
+ ('qos_spec', volume_fakes.qos_id),
('property', volume_fakes.qos_specs)
]
parsed_args = self.check_parser(self.cmd, arglist, verifylist)
@@ -386,7 +386,7 @@ class TestQosShow(TestQos):
volume_fakes.qos_id
]
verifylist = [
- ('qos_specs', volume_fakes.qos_id)
+ ('qos_spec', volume_fakes.qos_id)
]
parsed_args = self.check_parser(self.cmd, arglist, verifylist)
@@ -434,7 +434,7 @@ class TestQosUnset(TestQos):
]
verifylist = [
- ('qos_specs', volume_fakes.qos_id),
+ ('qos_spec', volume_fakes.qos_id),
('property', ['iops', 'foo'])
]
parsed_args = self.check_parser(self.cmd, arglist, verifylist)
diff --git a/openstackclient/tests/volume/v2/test_qos_specs.py b/openstackclient/tests/volume/v2/test_qos_specs.py
index 6a550988..4222ed07 100644
--- a/openstackclient/tests/volume/v2/test_qos_specs.py
+++ b/openstackclient/tests/volume/v2/test_qos_specs.py
@@ -56,7 +56,7 @@ class TestQosAssociate(TestQos):
volume_fakes.type_id
]
verifylist = [
- ('qos_specs', volume_fakes.qos_id),
+ ('qos_spec', volume_fakes.qos_id),
('volume_type', volume_fakes.type_id)
]
parsed_args = self.check_parser(self.cmd, arglist, verifylist)
@@ -210,7 +210,7 @@ class TestQosDelete(TestQos):
volume_fakes.qos_id
]
verifylist = [
- ('qos_specs', volume_fakes.qos_id)
+ ('qos_specs', [volume_fakes.qos_id])
]
parsed_args = self.check_parser(self.cmd, arglist, verifylist)
@@ -223,7 +223,7 @@ class TestQosDelete(TestQos):
volume_fakes.qos_name
]
verifylist = [
- ('qos_specs', volume_fakes.qos_name)
+ ('qos_specs', [volume_fakes.qos_name])
]
parsed_args = self.check_parser(self.cmd, arglist, verifylist)
@@ -255,7 +255,7 @@ class TestQosDisassociate(TestQos):
'--volume-type', volume_fakes.type_id
]
verifylist = [
- ('qos_specs', volume_fakes.qos_id),
+ ('qos_spec', volume_fakes.qos_id),
('volume_type', volume_fakes.type_id)
]
parsed_args = self.check_parser(self.cmd, arglist, verifylist)
@@ -278,7 +278,7 @@ class TestQosDisassociate(TestQos):
'--all'
]
verifylist = [
- ('qos_specs', volume_fakes.qos_id)
+ ('qos_spec', volume_fakes.qos_id)
]
parsed_args = self.check_parser(self.cmd, arglist, verifylist)
@@ -351,7 +351,7 @@ class TestQosSet(TestQos):
'--property', 'iops=9001'
]
verifylist = [
- ('qos_specs', volume_fakes.qos_id),
+ ('qos_spec', volume_fakes.qos_id),
('property', volume_fakes.qos_specs)
]
parsed_args = self.check_parser(self.cmd, arglist, verifylist)
@@ -386,7 +386,7 @@ class TestQosShow(TestQos):
volume_fakes.qos_id
]
verifylist = [
- ('qos_specs', volume_fakes.qos_id)
+ ('qos_spec', volume_fakes.qos_id)
]
parsed_args = self.check_parser(self.cmd, arglist, verifylist)
@@ -434,7 +434,7 @@ class TestQosUnset(TestQos):
]
verifylist = [
- ('qos_specs', volume_fakes.qos_id),
+ ('qos_spec', volume_fakes.qos_id),
('property', ['iops', 'foo'])
]
parsed_args = self.check_parser(self.cmd, arglist, verifylist)