diff --git a/tests/aws/services/lambda_/test_lambda.py b/tests/aws/services/lambda_/test_lambda.py index 2ccb0464dd679..11b754d296fe1 100644 --- a/tests/aws/services/lambda_/test_lambda.py +++ b/tests/aws/services/lambda_/test_lambda.py @@ -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, "")) @@ -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( diff --git a/tests/aws/services/lambda_/test_lambda.snapshot.json b/tests/aws/services/lambda_/test_lambda.snapshot.json index e2440430a9abc..cb24e3154abd6 100644 --- a/tests/aws/services/lambda_/test_lambda.snapshot.json +++ b/tests/aws/services/lambda_/test_lambda.snapshot.json @@ -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", @@ -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 \"\", line 1387, in _gcd_import\n", " File \"\", line 1360, in _find_and_load\n", " File \"\", line 1331, in _find_and_load_unlocked\n", " File \"\", line 935, in _load_unlocked\n", - " File \"\", line 995, in exec_module\n", + " File \"\", line 1022, in exec_module\n", " File \"\", line 488, in _call_with_frames_removed\n", " File \"/var/task/lambda_runtime_error.py\", line 1, in \n raise Exception(\"Runtime startup fails\")\n" ] diff --git a/tests/aws/services/lambda_/test_lambda.validation.json b/tests/aws/services/lambda_/test_lambda.validation.json index c41b57efe53a0..49d07c303273f 100644 --- a/tests/aws/services/lambda_/test_lambda.validation.json +++ b/tests/aws/services/lambda_/test_lambda.validation.json @@ -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"