Browse Source

Add tempest test for querying queus with count

Change-Id: I0fca9cb65b65da6d8f386175fc5c29abf12c4311
Implements: blueprint query-queues-with-count
Signed-off-by: wanghao <sxmatch1986@gmail.com>
changes/23/707323/3
wanghao 1 week ago
parent
commit
04f720906d
1 changed files with 9 additions and 0 deletions
  1. +9
    -0
      zaqar_tempest_plugin/tests/v2/test_queues.py

+ 9
- 0
zaqar_tempest_plugin/tests/v2/test_queues.py View File

@@ -79,6 +79,15 @@ class TestManageQueue(base.BaseV2MessagingTest):
for item in body['queues']:
self.assertIn(item['name'], self.queues)

@decorators.idempotent_id('9a2e9a09-5cbd-416f-a75f-fe827462aa9a')
def test_list_queues_with_count(self):
# Listing queues with count
_, body = self.list_queues({"with_count": True})
self.assertEqual(len(body['queues']), len(self.queues))
self.assertEqual(len(self.queues), body['count'])
for item in body['queues']:
self.assertIn(item['name'], self.queues)

@decorators.idempotent_id('e96466e7-d43f-48f9-bfe8-59e3d40f6868')
def test_get_queue_stats(self):
# Retrieve random queue

Loading…
Cancel
Save