From 9530cd250dd836b3181a9361decb130e2aae1202 Mon Sep 17 00:00:00 2001 From: tammy-baylis-swi Date: Thu, 4 May 2023 15:49:38 -0700 Subject: [PATCH] botocore test does get_queue_url --- .../tests/test_botocore_instrumentation.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/instrumentation/opentelemetry-instrumentation-botocore/tests/test_botocore_instrumentation.py b/instrumentation/opentelemetry-instrumentation-botocore/tests/test_botocore_instrumentation.py index 9a5d8429b5..da97075b82 100644 --- a/instrumentation/opentelemetry-instrumentation-botocore/tests/test_botocore_instrumentation.py +++ b/instrumentation/opentelemetry-instrumentation-botocore/tests/test_botocore_instrumentation.py @@ -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(