From ef8b6c1f28222a5718a80971073d4204babad260 Mon Sep 17 00:00:00 2001 From: macheins Date: Tue, 19 Jul 2016 14:15:16 +0200 Subject: [PATCH 1/2] Fix broken format of SQS QueueArn attribute --- moto/sqs/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/moto/sqs/models.py b/moto/sqs/models.py index 2063a952a..87f8183e7 100644 --- a/moto/sqs/models.py +++ b/moto/sqs/models.py @@ -122,7 +122,7 @@ class Queue(object): self.last_modified_timestamp = now self.maximum_message_size = 64 << 10 self.message_retention_period = 86400 * 4 # four days - self.queue_arn = 'arn:aws:sqs:sqs.us-east-1:123456789012:%s' % self.name + self.queue_arn = 'arn:aws:sqs:us-east-1:123456789012:%s' % self.name self.receive_message_wait_time_seconds = 0 @classmethod From b152996ddf003ee9490a41376671116330c14385 Mon Sep 17 00:00:00 2001 From: macheins Date: Tue, 19 Jul 2016 14:20:33 +0200 Subject: [PATCH 2/2] Changed unit test to reflect changes --- tests/test_sqs/test_sqs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_sqs/test_sqs.py b/tests/test_sqs/test_sqs.py index 77c28aaa8..089dbf04b 100644 --- a/tests/test_sqs/test_sqs.py +++ b/tests/test_sqs/test_sqs.py @@ -394,7 +394,7 @@ def test_queue_attributes(): attributes = queue.get_attributes() attributes['QueueArn'].should.look_like( - 'arn:aws:sqs:sqs.us-east-1:123456789012:%s' % queue_name) + 'arn:aws:sqs:us-east-1:123456789012:%s' % queue_name) attributes['VisibilityTimeout'].should.look_like(str(visibility_timeout))