Skip to content

Commit

Permalink
[Manual backport] Update python runtime version in lambda tests (#1987)…
Browse files Browse the repository at this point in the history
… (#2013)

[Manual backport] Update python runtime version in lambda tests (#1987)

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
(cherry picked from commit 85efdad)
SUMMARY


ISSUE TYPE


Bugfix Pull Request
Docs Pull Request
Feature Pull Request
New Module Pull Request

COMPONENT NAME

ADDITIONAL INFORMATION

Reviewed-by: Mark Chappell
  • Loading branch information
alinabuzachis authored Mar 5, 2024
1 parent bf0a0a9 commit a54e103
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
16 changes: 8 additions & 8 deletions tests/integration/targets/lambda_alias/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,17 +35,17 @@
dest: '{{ output_dir }}/mini_lambda.zip'

- name: Upload test lambda (version 1)
lambda:
name: '{{ lambda_function_name }}'
runtime: 'python3.7'
handler: 'mini_lambda.handler'
role: '{{ lambda_role_name }}'
zip_file: '{{ zip_res.dest }}'
amazon.aws.lambda:
name: "{{ lambda_function_name }}"
runtime: python3.12
handler: mini_lambda.handler
role: "{{ lambda_role_name }}"
zip_file: "{{ zip_res.dest }}"
register: lambda_a
- name: assert lambda upload succeeded
assert:
ansible.builtin.assert:
that:
- lambda_a is changed
- lambda_a is changed

- name: Update lambda (version 2)
lambda:
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 a54e103

Please sign in to comment.