From e295857b42e3cbdbbc44c5528b50ec47db536eff Mon Sep 17 00:00:00 2001 From: Mark Chappell Date: Fri, 31 Jul 2020 21:18:04 +0200 Subject: [PATCH] Follow up on #167 - (permission preservation when copying lambdas) (#168) lambda_policy should now be stable apply same change to s3_bucket_notification This commit was initially merged in https://github.com/ansible-collections/community.aws See: https://github.com/ansible-collections/community.aws/commit/0bad2c05e8fe9f88c59413bff5f4cc73f0dc0dad --- tests/integration/targets/lambda/tasks/main.yml | 10 +++++----- tests/integration/targets/lambda_policy/aliases | 2 -- tests/integration/targets/lambda_policy/tasks/main.yml | 6 +++--- 3 files changed, 8 insertions(+), 10 deletions(-) diff --git a/tests/integration/targets/lambda/tasks/main.yml b/tests/integration/targets/lambda/tasks/main.yml index 403cdd411f6..4670a8b2544 100644 --- a/tests/integration/targets/lambda/tasks/main.yml +++ b/tests/integration/targets/lambda/tasks/main.yml @@ -55,21 +55,21 @@ - name: move lambda into place for archive module copy: src: mini_lambda.py - dest: '{{output_dir}}/mini_lambda.py' + dest: '{{ output_dir }}/mini_lambda.py' mode: preserve - name: bundle lambda into a zip register: zip_res archive: format: zip - path: '{{output_dir}}/mini_lambda.py' - dest: '{{output_dir}}/mini_lambda.zip' + path: '{{ output_dir }}/mini_lambda.py' + dest: '{{ output_dir }}/mini_lambda.zip' - name: test state=present - upload the lambda lambda: - name: '{{lambda_function_name}}' + name: '{{ lambda_function_name }}' runtime: python2.7 handler: mini_lambda.handler role: ansible_lambda_role - zip_file: '{{zip_res.dest}}' + zip_file: '{{ zip_res.dest }}' register: result - name: assert lambda upload succeeded assert: diff --git a/tests/integration/targets/lambda_policy/aliases b/tests/integration/targets/lambda_policy/aliases index 157b4347079..a112c3d1bb2 100644 --- a/tests/integration/targets/lambda_policy/aliases +++ b/tests/integration/targets/lambda_policy/aliases @@ -1,4 +1,2 @@ cloud/aws shippable/aws/group1 -# https://github.com/ansible-collections/community.aws/issues/155 -unstable diff --git a/tests/integration/targets/lambda_policy/tasks/main.yml b/tests/integration/targets/lambda_policy/tasks/main.yml index 5c1d210e74d..4714a8b2853 100644 --- a/tests/integration/targets/lambda_policy/tasks/main.yml +++ b/tests/integration/targets/lambda_policy/tasks/main.yml @@ -58,14 +58,14 @@ - name: move lambda into place for archive module copy: src: mini_http_lambda.py - dest: '{{output_dir}}/mini_http_lambda.py' + dest: '{{ output_dir }}/mini_http_lambda.py' mode: preserve - name: bundle lambda into a zip register: zip_res archive: format: zip - path: '{{output_dir}}/mini_http_lambda.py' - dest: '{{output_dir}}/mini_http_lambda.zip' + path: '{{ output_dir }}/mini_http_lambda.py' + dest: '{{ output_dir }}/mini_http_lambda.zip' - name: create minimal lambda role iam_role: aws_region: '{{ aws_region }}'