From e0a03a92da8777cfb9018b62c2b0a55add82f000 Mon Sep 17 00:00:00 2001 From: zahlabut Date: Thu, 2 Sep 2021 16:41:28 +0300 Subject: [PATCH] Fix for QoS APIs: "Update" and "List" URLs Change-Id: Ib0135cd639ea749150aba8e591b3f8de63744639 --- .../lib/services/network/qos_limit_bandwidth_rules_client.py | 4 ++-- 1 file changed, 2 insertions(+), 2 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 09483e366e..8ca3c68bdd 100644 --- a/tempest/lib/services/network/qos_limit_bandwidth_rules_client.py +++ b/tempest/lib/services/network/qos_limit_bandwidth_rules_client.py @@ -36,7 +36,7 @@ class QosLimitBandwidthRulesClient(base.BaseNetworkClient): API reference: https://docs.openstack.org/api-ref/network/v2/index.html#update-bandwidth-limit-rule """ - uri = '/qos/policies/{}/bandwidth_limit_rules{}/'.format( + 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) @@ -70,5 +70,5 @@ class QosLimitBandwidthRulesClient(base.BaseNetworkClient): API reference: https://docs.openstack.org/api-ref/network/v2/index.html#list-bandwidth-limit-rules-for-qos-policy """ - uri = '/qos/policies/%s/bandwidth_limit_rules'.format(qos_policy_id) + uri = '/qos/policies/{}/bandwidth_limit_rules'.format(qos_policy_id) return self.list_resources(uri, **filters)