Expected success status for "QoS rule update APIs" is "200 OK"
Fix for: https://bugs.launchpad.net/neutron/+bug/1942448 Change-Id: I1e798badceb7fbda499bfeb34c98dea0e73c24bf
This commit is contained in:
parent
d3d953046a
commit
ad2c3009ae
@ -39,7 +39,7 @@ class QosLimitBandwidthRulesClient(base.BaseNetworkClient):
|
||||
uri = '/qos/policies/{}/bandwidth_limit_rules/{}'.format(
|
||||
qos_policy_id, rule_id)
|
||||
post_data = {'bandwidth_limit_rule': kwargs}
|
||||
return self.update_resource(uri, post_data, expect_response_code=202)
|
||||
return self.update_resource(uri, post_data)
|
||||
|
||||
def show_limit_bandwidth_rule(self, qos_policy_id, rule_id, **fields):
|
||||
"""Show details of a limit bandwidth rule.
|
||||
|
@ -38,7 +38,7 @@ class QosMinimumBandwidthRulesClient(base.BaseNetworkClient):
|
||||
uri = '/qos/policies/%s/minimum_bandwidth_rules/%s' % (
|
||||
qos_policy_id, rule_id)
|
||||
post_data = {'minimum_bandwidth_rule': kwargs}
|
||||
return self.update_resource(uri, post_data, expect_response_code=202)
|
||||
return self.update_resource(uri, post_data)
|
||||
|
||||
def show_minimum_bandwidth_rule(self, qos_policy_id, rule_id, **fields):
|
||||
"""Show details of a minimum bandwidth rule.
|
||||
|
@ -85,7 +85,7 @@ class TestQosLimitBandwidthRulesClient(base.BaseServiceTest):
|
||||
"tempest.lib.common.rest_client.RestClient.put",
|
||||
resp_body,
|
||||
bytes_body,
|
||||
202,
|
||||
200,
|
||||
qos_policy_id=self.FAKE_QOS_POLICY_ID,
|
||||
rule_id=self.FAKE_MAX_BW_RULE_ID,
|
||||
**update_kwargs)
|
||||
|
@ -98,7 +98,7 @@ class TestQosMinimumBandwidthRulesClient(base.BaseServiceTest):
|
||||
"tempest.lib.common.rest_client.RestClient.put",
|
||||
resp_body,
|
||||
bytes_body,
|
||||
202,
|
||||
200,
|
||||
qos_policy_id=self.FAKE_QOS_POLICY_ID,
|
||||
rule_id=self.FAKE_MIN_BW_RULE_ID,
|
||||
**update_kwargs)
|
||||
|
Loading…
x
Reference in New Issue
Block a user