Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
sentrivana committed Nov 22, 2024
1 parent b47ada3 commit faa5654
Showing 1 changed file with 7 additions and 13 deletions.
20 changes: 7 additions & 13 deletions tests/integrations/aws_lambda/test_aws.py
Original file line number Diff line number Diff line change
Expand Up @@ -619,18 +619,12 @@ def test_handler(event, context):
traces_sampler.assert_any_call(
DictionaryContaining(
{
"aws_event": DictionaryContaining({
"httpMethod": "GET",
"path": "/sit/stay/rollover",
"headers": {"Host": "x.io", "X-Forwarded-Proto": "http"},
}),
"aws_context": ObjectDescribedBy(
type=get_lambda_bootstrap().LambdaContext,
attrs={
'function_name': StringContaining("test_"),
'function_version': '$LATEST',
}
)
"http.request.method": "GET",
"url.path": "/sit/stay/rollover",
"url.query": "repeat=twice",
"url.full": "http://x.io/sit/stay/rollover?repeat=twice",
"network.protocol.name": "http",
"server.address": "x.io",
}
)
)
Expand All @@ -649,7 +643,7 @@ def test_handler(event, context):
)
"""
),
b'{"httpMethod": "GET", "path": "/sit/stay/rollover", "headers": {"Host": "x.io", "X-Forwarded-Proto": "http"}}',
b'{"httpMethod": "GET", "path": "/sit/stay/rollover", "query_string": {"repeat": "again"}, "headers": {"Host": "x.io", "X-Forwarded-Proto": "http"}}',
)

assert response["Payload"]["AssertionError raised"] is False
Expand Down

0 comments on commit faa5654

Please sign in to comment.