From 85efdadae51f7c523bc5da742cbd02e1055b869d Mon Sep 17 00:00:00 2001 From: Mike Graves Date: Mon, 26 Feb 2024 12:08:16 -0500 Subject: [PATCH] Update python runtime version in lambda tests (#1987) Update python runtime version in lambda tests SUMMARY The lambda_alias target was failing due to the python3.7 runtime no longer being supported. I have updated this to python3.12. The lambda_layer target was still passing, but I went ahead and updated these to python3.12, as well. ISSUE TYPE Bugfix Pull Request COMPONENT NAME ADDITIONAL INFORMATION Reviewed-by: Alina Buzachis Reviewed-by: Mark Chappell --- tests/integration/targets/lambda_alias/tasks/main.yml | 2 +- tests/integration/targets/lambda_layer/tasks/main.yml | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/integration/targets/lambda_alias/tasks/main.yml b/tests/integration/targets/lambda_alias/tasks/main.yml index b5545050ddf..d6b8e0d6e88 100644 --- a/tests/integration/targets/lambda_alias/tasks/main.yml +++ b/tests/integration/targets/lambda_alias/tasks/main.yml @@ -38,7 +38,7 @@ - name: Upload test lambda (version 1) amazon.aws.lambda: name: "{{ lambda_function_name }}" - runtime: python3.7 + runtime: python3.12 handler: mini_lambda.handler role: "{{ lambda_role_name }}" zip_file: "{{ zip_res.dest }}" diff --git a/tests/integration/targets/lambda_layer/tasks/main.yml b/tests/integration/targets/lambda_layer/tasks/main.yml index 2db4237cfc4..b60c3ed1e6a 100644 --- a/tests/integration/targets/lambda_layer/tasks/main.yml +++ b/tests/integration/targets/lambda_layer/tasks/main.yml @@ -55,7 +55,7 @@ content: zip_file: "{{ zip_file_path }}" compatible_runtimes: - - python3.7 + - python3.12 license_info: GPL-3.0-only register: create_check_mode check_mode: true @@ -79,7 +79,7 @@ content: zip_file: "{{ zip_file_path }}" compatible_runtimes: - - python3.7 + - python3.12 license_info: GPL-3.0-only register: first_version @@ -91,7 +91,7 @@ s3_bucket: "{{ s3_bucket_name }}" s3_key: "{{ s3_bucket_object }}" compatible_runtimes: - - python3.7 + - python3.12 license_info: GPL-3.0-only register: last_version