From 2973961b954c2cbb076757ce554817133dd29188 Mon Sep 17 00:00:00 2001 From: Flavio Percoco Date: Tue, 9 Sep 2014 19:12:09 +0200 Subject: [PATCH] Send more than 1 message in messages_get_many A bug in falcon prevented this test to be meaningful. That bug has been fixed and now we can serialize several messages ids in a query parameter. Change-Id: Ida8d790fc6222c00b24e24a7a4c303d5b3d16351 --- zaqarclient/tests/queues/queues.py | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/zaqarclient/tests/queues/queues.py b/zaqarclient/tests/queues/queues.py index 6f17fab2..9c6f1203 100644 --- a/zaqarclient/tests/queues/queues.py +++ b/zaqarclient/tests/queues/queues.py @@ -312,15 +312,12 @@ class QueuesV1QueueFunctionalTest(base.QueuesTestBase): messages = [ {'ttl': 60, 'body': 'Post It 1!'}, - - # NOTE(falper87): Waiting for - # https://github.com/racker/falcon/issues/198 - #{'ttl': 60, 'body': 'Post It 2!'}, - #{'ttl': 60, 'body': 'Post It 3!'}, + {'ttl': 60, 'body': 'Post It 2!'}, + {'ttl': 60, 'body': 'Post It 3!'}, ] res = queue.post(messages)['resources'] msgs_id = [ref.split('/')[-1] for ref in res] messages = queue.messages(*msgs_id) self.assertTrue(isinstance(messages, iterator._Iterator)) - self.assertEqual(len(list(messages)), 1) + self.assertEqual(len(list(messages)), 3)