Skip to content

Commit 6e81d52

Browse files
committed
test: Adapt to AWS SQS ep domain name change
From: https://queue.amazonaws.com To: https://sqs.us-east-1.amazonaws.com Signed-off-by: Ferenc Géczi <[email protected]>
1 parent 340a22b commit 6e81d52

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/clients/boto3/test_boto3_sqs.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,17 +100,17 @@ def test_send_message(sqs):
100100
assert (boto_span.ec is None)
101101

102102
assert boto_span.data['boto3']['op'] == 'SendMessage'
103-
assert boto_span.data['boto3']['ep'] == 'https://queue.amazonaws.com'
103+
assert boto_span.data['boto3']['ep'] == 'https://sqs.us-east-1.amazonaws.com'
104104
assert boto_span.data['boto3']['reg'] == 'us-east-1'
105105

106-
payload = {'QueueUrl': 'https://queue.amazonaws.com/123456789012/SQS_QUEUE_NAME', 'DelaySeconds': 10,
106+
payload = {'QueueUrl': 'https://sqs.us-east-1.amazonaws.com/123456789012/SQS_QUEUE_NAME', 'DelaySeconds': 10,
107107
'MessageAttributes': {'Website': {'DataType': 'String', 'StringValue': 'https://www.instana.com'}},
108108
'MessageBody': 'Monitor any application, service, or request with Instana Application Performance Monitoring'}
109109
assert boto_span.data['boto3']['payload'] == payload
110110

111111
assert boto_span.data['http']['status'] == 200
112112
assert boto_span.data['http']['method'] == 'POST'
113-
assert boto_span.data['http']['url'] == 'https://queue.amazonaws.com:443/SendMessage'
113+
assert boto_span.data['http']['url'] == 'https://sqs.us-east-1.amazonaws.com:443/SendMessage'
114114

115115

116116
@mock_sqs

0 commit comments

Comments
 (0)