diff --git a/tests/integration/targets/lambda_alias/tasks/main.yml b/tests/integration/targets/lambda_alias/tasks/main.yml index b840c5e9a7b..1e3961525ba 100644 --- a/tests/integration/targets/lambda_alias/tasks/main.yml +++ b/tests/integration/targets/lambda_alias/tasks/main.yml @@ -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: diff --git a/tests/integration/targets/lambda_layer/tasks/main.yml b/tests/integration/targets/lambda_layer/tasks/main.yml index 60a227e64ec..a11b6354453 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