Skip to content

Commit c2e30e7

Browse files
committed
botocore: bump moto to 3.1.19
1 parent c628aa0 commit c2e30e7

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

instrumentation/opentelemetry-instrumentation-botocore/test-requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jsonschema==4.21.1
2828
jsonschema-specifications==2023.12.1
2929
junit-xml==1.9
3030
MarkupSafe==2.0.1
31-
moto==2.2.20
31+
moto==3.1.19
3232
mpmath==1.3.0
3333
networkx==3.1
3434
packaging==23.2

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -324,14 +324,14 @@ def test_get_item(self):
324324
Key={"id": {"S": "1"}},
325325
ConsistentRead=True,
326326
AttributesToGet=["id"],
327-
ProjectionExpression="1,2",
327+
ProjectionExpression="PE",
328328
ReturnConsumedCapacity="TOTAL",
329329
)
330330

331331
span = self.assert_span("GetItem")
332332
self.assert_table_names(span, self.default_table_name)
333333
self.assert_consistent_read(span, True)
334-
self.assert_projection(span, "1,2")
334+
self.assert_projection(span, "PE")
335335
self.assert_consumed_capacity(span, self.default_table_name)
336336

337337
@mock_dynamodb2
@@ -390,7 +390,7 @@ def test_query(self):
390390
}
391391
},
392392
ScanIndexForward=True,
393-
ProjectionExpression="1,2",
393+
ProjectionExpression="PE",
394394
ReturnConsumedCapacity="TOTAL",
395395
)
396396

@@ -403,7 +403,7 @@ def test_query(self):
403403
self.assert_consistent_read(span, True)
404404
self.assert_index_name(span, "lsi")
405405
self.assert_limit(span, 42)
406-
self.assert_projection(span, "1,2")
406+
self.assert_projection(span, "PE")
407407
self.assert_select(span, "ALL_ATTRIBUTES")
408408
self.assert_consumed_capacity(span, self.default_table_name)
409409

@@ -419,7 +419,7 @@ def test_scan(self):
419419
Select="ALL_ATTRIBUTES",
420420
TotalSegments=17,
421421
Segment=21,
422-
ProjectionExpression="1,2",
422+
ProjectionExpression="PE",
423423
ConsistentRead=True,
424424
ReturnConsumedCapacity="TOTAL",
425425
)
@@ -440,7 +440,7 @@ def test_scan(self):
440440
self.assert_consistent_read(span, True)
441441
self.assert_index_name(span, "lsi")
442442
self.assert_limit(span, 42)
443-
self.assert_projection(span, "1,2")
443+
self.assert_projection(span, "PE")
444444
self.assert_select(span, "ALL_ATTRIBUTES")
445445
self.assert_consumed_capacity(span, self.default_table_name)
446446

0 commit comments

Comments
 (0)