Fix for QoS APIs: "Update" and "List" URLs
Change-Id: Ib0135cd639ea749150aba8e591b3f8de63744639
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 09483e3..8ca3c68 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 @@
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 @@
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)