summaryrefslogtreecommitdiff
path: root/openstackclient/tests/unit/common
diff options
context:
space:
mode:
authoryanpuqing <yanpq@awcloud.com>2018-06-19 05:13:48 -0400
committeryanpuqing <yanpq@awcloud.com>2018-06-20 11:08:09 +0000
commitb18e79c09bcaea86b3f8470c909664e5fe940682 (patch)
tree835930e11a099b76d7ccc89f8e9a9c858f3f93fd /openstackclient/tests/unit/common
parent402c9a21b347509520be206e28ee7d0ef4004b92 (diff)
downloadpython-openstackclient-b18e79c09bcaea86b3f8470c909664e5fe940682.tar.gz
Delete the LB object quotas set command in openstackclient
Setting octavia quotas should use "openstack loadbalancer quota set", not "openstack quota set". The vip parameter had be removed from octavia. The patch removes '--vips', '--health-monitors', '--l7policies' parameter in "openstack quota set" command. Change-Id: Id0046195aa93bae62264d9de7d123cf63bd0fb7e Task: 19657 Story: 2002016
Diffstat (limited to 'openstackclient/tests/unit/common')
-rw-r--r--openstackclient/tests/unit/common/test_quota.py9
1 files changed, 0 insertions, 9 deletions
diff --git a/openstackclient/tests/unit/common/test_quota.py b/openstackclient/tests/unit/common/test_quota.py
index 1a3da31d..fc975b98 100644
--- a/openstackclient/tests/unit/common/test_quota.py
+++ b/openstackclient/tests/unit/common/test_quota.py
@@ -644,9 +644,6 @@ class TestQuotaSet(TestQuota):
'--routers', str(network_fakes.QUOTA['router']),
'--rbac-policies', str(network_fakes.QUOTA['rbac_policy']),
'--ports', str(network_fakes.QUOTA['port']),
- '--vips', str(network_fakes.QUOTA['vip']),
- '--health-monitors', str(network_fakes.QUOTA['healthmonitor']),
- '--l7policies', str(network_fakes.QUOTA['l7policy']),
self.projects[0].name,
]
verifylist = [
@@ -660,9 +657,6 @@ class TestQuotaSet(TestQuota):
('router', network_fakes.QUOTA['router']),
('rbac_policy', network_fakes.QUOTA['rbac_policy']),
('port', network_fakes.QUOTA['port']),
- ('vip', network_fakes.QUOTA['vip']),
- ('healthmonitor', network_fakes.QUOTA['healthmonitor']),
- ('l7policy', network_fakes.QUOTA['l7policy']),
('project', self.projects[0].name),
]
parsed_args = self.check_parser(self.cmd, arglist, verifylist)
@@ -679,9 +673,6 @@ class TestQuotaSet(TestQuota):
'router': network_fakes.QUOTA['router'],
'rbac_policy': network_fakes.QUOTA['rbac_policy'],
'port': network_fakes.QUOTA['port'],
- 'vip': network_fakes.QUOTA['vip'],
- 'healthmonitor': network_fakes.QUOTA['healthmonitor'],
- 'l7policy': network_fakes.QUOTA['l7policy'],
}
self.network_mock.update_quota.assert_called_once_with(
self.projects[0].id,