Skip to content

Commit

Permalink
Update python runtime version in lambda tests (ansible-collections#1987)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
gravesm authored Feb 26, 2024
1 parent f26452a commit 85efdad
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion tests/integration/targets/lambda_alias/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}"
Expand Down
6 changes: 3 additions & 3 deletions tests/integration/targets/lambda_layer/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

Expand All @@ -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

Expand Down

0 comments on commit 85efdad

Please sign in to comment.