Skip to content

Commit 91799b8

Browse files
committed
Check Request ID format on S3 call
1 parent 3058281 commit 91799b8

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

instrumentation/opentelemetry-instrumentation-botocore/setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ install_requires =
4545

4646
[options.extras_require]
4747
test =
48-
moto[all] ~= 2.0
48+
moto[all] ~= 2.2.6
4949
opentelemetry-test == 0.25b0
5050

5151
[options.packages.find]

instrumentation/opentelemetry-instrumentation-botocore/tests/test_botocore_instrumentation.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -178,15 +178,15 @@ def test_s3_put(self):
178178

179179
location = {"LocationConstraint": "us-west-2"}
180180
s3.create_bucket(Bucket="mybucket", CreateBucketConfiguration=location)
181-
self.assert_span("S3", "CreateBucket")
181+
self.assert_span("S3", "CreateBucket", request_id=_REQUEST_ID_REGEX_MATCH)
182182
self.memory_exporter.clear()
183183

184184
s3.put_object(Key="foo", Bucket="mybucket", Body=b"bar")
185-
self.assert_span("S3", "PutObject")
185+
self.assert_span("S3", "PutObject", request_id=_REQUEST_ID_REGEX_MATCH)
186186
self.memory_exporter.clear()
187187

188188
s3.get_object(Bucket="mybucket", Key="foo")
189-
self.assert_span("S3", "GetObject")
189+
self.assert_span("S3", "GetObject", request_id=_REQUEST_ID_REGEX_MATCH)
190190

191191
@mock_sqs
192192
def test_sqs_client(self):

0 commit comments

Comments
 (0)