2016-04-06 20:14:05 +00:00
|
|
|
from __future__ import absolute_import, unicode_literals
|
|
|
|
|
2011-05-15 11:19:34 +00:00
|
|
|
from funtests import transport
|
|
|
|
|
2016-04-05 21:57:00 +00:00
|
|
|
from kombu.tests.case import skip
|
2011-05-15 11:19:34 +00:00
|
|
|
|
2016-04-05 21:57:00 +00:00
|
|
|
|
|
|
|
@skip.unless_environ('AWS_ACCESS_KEY_ID')
|
|
|
|
@skip.unless_environ('AWS_SECRET_ACCESS_KEY')
|
2017-04-14 05:22:18 +00:00
|
|
|
@skip.unless_module('boto3')
|
2011-05-15 11:19:34 +00:00
|
|
|
class test_SQS(transport.TransportCase):
|
2013-04-15 16:44:13 +00:00
|
|
|
transport = 'SQS'
|
|
|
|
prefix = 'sqs'
|
2011-05-15 11:19:34 +00:00
|
|
|
event_loop_max = 100
|
|
|
|
message_size_limit = 4192 # SQS max body size / 2.
|
2011-06-07 14:20:09 +00:00
|
|
|
reliable_purge = False
|
2014-05-27 13:41:20 +00:00
|
|
|
#: does not guarantee FIFO order, even in simple cases
|
|
|
|
suppress_disorder_warning = True
|
2011-05-15 11:19:34 +00:00
|
|
|
|
|
|
|
def after_connect(self, connection):
|
2011-06-05 18:02:51 +00:00
|
|
|
connection.channel().sqs
|