Remove the ambiguous test
If Zaqar is deployed under Apache, the empty input negative check will return UnexpectedContentType which is not 405 error. This patch remove this ambiguous test. Change-Id: Ic384cd51581f0ad024bd2033eb9e00d022e253d4
This commit is contained in:
parent
f6c761d213
commit
97abad9108
@ -581,7 +581,8 @@ class TestMessagesNegative(base.BaseV2MessagingTest):
|
||||
# Pop value must be at least 1 and may not be greater than 20
|
||||
queue_name = self.queues[data_utils.rand_int_id(0,
|
||||
len(self.queues) - 1)]
|
||||
value = ' '
|
||||
# Use url code here to avoid Apache error.
|
||||
value = '%20'
|
||||
uri = "/v2/queues/{0}/messages?pop={1}".format(queue_name, value)
|
||||
self.assertRaises(lib_exc.BadRequest,
|
||||
self.client.delete_messages, uri)
|
||||
|
@ -43,15 +43,6 @@ class QueueNegativeTestJSON(base.BaseV2MessagingTest):
|
||||
self.client.create_queue,
|
||||
queue_name)
|
||||
|
||||
@decorators.attr(type=['negative'])
|
||||
@decorators.idempotent_id('639206ad-d74c-4f51-895d-76e2c7dff60b')
|
||||
def test_queue_name_is_not_specified(self):
|
||||
# Length of queue name should >= 1 and <=64 bytes
|
||||
queue_name = ' '
|
||||
self.assertRaises(lib_exc.UnexpectedResponseCode,
|
||||
self.client.create_queue,
|
||||
queue_name)
|
||||
|
||||
@decorators.attr(type=['negative'])
|
||||
@decorators.idempotent_id('3ca0e180-c770-4922-8a48-9563c484aaed')
|
||||
def test_queue_name_has_a_invalid_character_set(self):
|
||||
|
Loading…
Reference in New Issue
Block a user