diff options
4 files changed, 4 insertions, 4 deletions
diff --git a/tempest/lib/services/network/qos_limit_bandwidth_rules_client.py b/tempest/lib/services/network/qos_limit_bandwidth_rules_client.py index 8ca3c68bd..8fd87fe66 100644 --- a/tempest/lib/services/network/qos_limit_bandwidth_rules_client.py +++ b/tempest/lib/services/network/qos_limit_bandwidth_rules_client.py @@ -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. diff --git a/tempest/lib/services/network/qos_minimum_bandwidth_rules_client.py b/tempest/lib/services/network/qos_minimum_bandwidth_rules_client.py index e512acafb..dd9f45f22 100644 --- a/tempest/lib/services/network/qos_minimum_bandwidth_rules_client.py +++ b/tempest/lib/services/network/qos_minimum_bandwidth_rules_client.py @@ -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. diff --git a/tempest/tests/lib/services/network/test_qos_limit_bandwidth_rules_client.py b/tempest/tests/lib/services/network/test_qos_limit_bandwidth_rules_client.py index b03896867..e83792de7 100644 --- a/tempest/tests/lib/services/network/test_qos_limit_bandwidth_rules_client.py +++ b/tempest/tests/lib/services/network/test_qos_limit_bandwidth_rules_client.py @@ -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) diff --git a/tempest/tests/lib/services/network/test_qos_minimum_bandwidth_rules_client.py b/tempest/tests/lib/services/network/test_qos_minimum_bandwidth_rules_client.py index 7187ffa27..8234ddac2 100644 --- a/tempest/tests/lib/services/network/test_qos_minimum_bandwidth_rules_client.py +++ b/tempest/tests/lib/services/network/test_qos_minimum_bandwidth_rules_client.py @@ -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) |