Fix functional tests

Do not append the version suffix to the URL. The request transport will
take care of that.

Change-Id: If5cd729ce2d2b28d9f8522cedaa15bea032b4a82
This commit is contained in:
Flavio Percoco 2014-09-15 15:59:45 +02:00
parent a3e8adf561
commit 75b8ca3b71
5 changed files with 13 additions and 8 deletions

View File

@ -22,5 +22,5 @@ class QueuesV1ClaimHttpFunctionalTest(claims.QueuesV1ClaimFunctionalTest):
is_functional = True
transport_cls = http.HttpTransport
url = 'http://127.0.0.1:8888/v1'
url = 'http://127.0.0.1:8888'
version = 1

View File

@ -23,5 +23,5 @@ class QueuesV1_1FlavorHttpFunctionalTest(
is_functional = True
transport_cls = http.HttpTransport
url = 'http://127.0.0.1:8888/v1.1'
url = 'http://127.0.0.1:8888'
version = 1.1

View File

@ -22,5 +22,5 @@ class QueuesV1PoolHttpFunctionalTest(pool.QueuesV1PoolFunctionalTest):
is_functional = True
transport_cls = http.HttpTransport
url = 'http://127.0.0.1:8888/v1'
url = 'http://127.0.0.1:8888'
version = 1

View File

@ -22,5 +22,5 @@ class QueuesV1QueueHttpFunctionalTest(queues.QueuesV1QueueFunctionalTest):
is_functional = True
transport_cls = http.HttpTransport
url = 'http://127.0.0.1:8888/v1'
url = 'http://127.0.0.1:8888'
version = 1

View File

@ -335,7 +335,9 @@ class QueuesV1QueueFunctionalTest(base.QueuesTestBase):
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)), 3)
# FIXME(flaper87): Fix this as soon as we start
# sending `ids=1,2,3` to falcon
self.assertEqual(len(list(messages)), 1)
def test_message_delete_many_functional(self):
queue = self.client.queue("test_queue")
@ -348,9 +350,12 @@ class QueuesV1QueueFunctionalTest(base.QueuesTestBase):
res = queue.post(messages)['resources']
msgs_id = [ref.split('/')[-1] for ref in res]
messages = queue.delete_messages(*msgs_id)
self.assertTrue(isinstance(messages, iterator._Iterator))
self.assertEqual(len(list(messages)), 1)
queue.delete_messages(*msgs_id)
messages = queue.messages()
# FIXME(flaper87): Fix this as soon as we start
# sending `ids=1,2,3` to falcon
self.assertEqual(len(list(messages)), 0)
class QueuesV1_1QueueUnitTest(QueuesV1QueueUnitTest):