Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion tests/aws/services/lambda_/test_lambda.py
Original file line number Diff line number Diff line change
Expand Up @@ -1777,6 +1777,9 @@ def check_logs():

class TestLambdaErrors:
@markers.aws.validated
# TODO it seems like the used lambda images have a newer version of the RIC than AWS in production
# remove this skip once they have caught up
@markers.snapshot.skip_snapshot_verify(paths=["$..Payload.stackTrace"])
def test_lambda_runtime_error(self, aws_client, create_lambda_function, snapshot):
"""Test Lambda that raises an exception during runtime startup."""
snapshot.add_transformer(snapshot.transform.regex(PATTERN_UUID, "<uuid>"))
Expand All @@ -1786,7 +1789,7 @@ def test_lambda_runtime_error(self, aws_client, create_lambda_function, snapshot
func_name=function_name,
handler_file=TEST_LAMBDA_PYTHON_RUNTIME_ERROR,
handler="lambda_runtime_error.handler",
runtime=Runtime.python3_12,
runtime=Runtime.python3_13,
)

result = aws_client.lambda_.invoke(
Expand Down
6 changes: 3 additions & 3 deletions tests/aws/services/lambda_/test_lambda.snapshot.json
Original file line number Diff line number Diff line change
Expand Up @@ -3333,7 +3333,7 @@
}
},
"tests/aws/services/lambda_/test_lambda.py::TestLambdaErrors::test_lambda_runtime_error": {
"recorded-date": "16-04-2024, 08:08:32",
"recorded-date": "24-02-2025, 16:26:37",
"recorded-content": {
"invocation_error": {
"ExecutedVersion": "$LATEST",
Expand All @@ -3343,12 +3343,12 @@
"errorType": "Exception",
"requestId": "",
"stackTrace": [
" File \"/var/lang/lib/python3.12/importlib/__init__.py\", line 90, in import_module\n return _bootstrap._gcd_import(name[level:], package, level)\n",
" File \"/var/lang/lib/python3.13/importlib/__init__.py\", line 88, in import_module\n return _bootstrap._gcd_import(name[level:], package, level)\n",
" File \"<frozen importlib._bootstrap>\", line 1387, in _gcd_import\n",
" File \"<frozen importlib._bootstrap>\", line 1360, in _find_and_load\n",
" File \"<frozen importlib._bootstrap>\", line 1331, in _find_and_load_unlocked\n",
" File \"<frozen importlib._bootstrap>\", line 935, in _load_unlocked\n",
" File \"<frozen importlib._bootstrap_external>\", line 995, in exec_module\n",
" File \"<frozen importlib._bootstrap_external>\", line 1022, in exec_module\n",
" File \"<frozen importlib._bootstrap>\", line 488, in _call_with_frames_removed\n",
" File \"/var/task/lambda_runtime_error.py\", line 1, in <module>\n raise Exception(\"Runtime startup fails\")\n"
]
Expand Down
2 changes: 1 addition & 1 deletion tests/aws/services/lambda_/test_lambda.validation.json
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@
"last_validated_date": "2024-04-08T16:59:34+00:00"
},
"tests/aws/services/lambda_/test_lambda.py::TestLambdaErrors::test_lambda_runtime_error": {
"last_validated_date": "2024-04-16T08:08:31+00:00"
"last_validated_date": "2025-02-24T16:26:36+00:00"
},
"tests/aws/services/lambda_/test_lambda.py::TestLambdaErrors::test_lambda_runtime_exit": {
"last_validated_date": "2024-04-08T16:58:35+00:00"
Expand Down
Loading