Skip to content

Commit

Permalink
botocore test does get_queue_url
Browse files Browse the repository at this point in the history
  • Loading branch information
tammy-baylis-swi committed May 4, 2023
1 parent 09c3c1f commit 9530cd2
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -190,13 +190,18 @@ def test_sqs_send_message(self):
sqs = self._make_client("sqs")
test_queue_name = "test_queue_name"

response = sqs.create_queue(QueueName=test_queue_name)
sqs.create_queue(QueueName=test_queue_name)
self.assert_span(
"SQS", "CreateQueue", request_id=_REQUEST_ID_REGEX_MATCH
)
self.memory_exporter.clear()

response = sqs.get_queue_url(
QueueName=test_queue_name,
)
queue_url = response["QueueUrl"]
self.memory_exporter.clear()

sqs.send_message(QueueUrl=queue_url, MessageBody="Test SQS MESSAGE!")

self.assert_span(
Expand Down

0 comments on commit 9530cd2

Please sign in to comment.