Fix Tempest error

The url of listing subscription should be "{0}/queues/{1}/subscriptions"

Change-Id: Iaa0e114ce0f3876a0c2630ff1bdcbb4549592498
This commit is contained in:
wanghao 2019-05-25 15:30:05 +08:00
parent f89d4ba022
commit f6211b4e5c

View File

@ -485,8 +485,8 @@ class V2MessagingClient(MessagingClient):
return resp, body
def list_subscription(self, queue_name):
uri = '{0}/queues/{1}/subscriptions/'.format(self.uri_prefix,
queue_name)
uri = '{0}/queues/{1}/subscriptions'.format(self.uri_prefix,
queue_name)
resp, body = self.get(uri, headers=self.headers)
body = json.loads(body)
self.validate_response(v2schema.list_subscriptions, resp, body)