summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMatt Clay <matt@mystile.com>2021-10-20 10:27:07 -0700
committerMatt Clay <matt@mystile.com>2021-10-20 11:00:33 -0700
commit22a9a4f913a340f9cbb31a96ed01c6138991a4d0 (patch)
tree3100189d72b59c341db3f6bfb947b19521716f69 /test
parent082435365d4b594ea57d7208ecb4f5a007d5cd77 (diff)
downloadansible-22a9a4f913a340f9cbb31a96ed01c6138991a4d0.tar.gz
Fix AWS Lambda tests.
Diffstat (limited to 'test')
-rw-r--r--test/integration/targets/aws_lambda/tasks/main.yml24
-rw-r--r--test/integration/targets/lambda_policy/tasks/main.yml2
2 files changed, 13 insertions, 13 deletions
diff --git a/test/integration/targets/aws_lambda/tasks/main.yml b/test/integration/targets/aws_lambda/tasks/main.yml
index 767d6ada3b..c6a17cde55 100644
--- a/test/integration/targets/aws_lambda/tasks/main.yml
+++ b/test/integration/targets/aws_lambda/tasks/main.yml
@@ -34,7 +34,7 @@
- name: test with no role or handler
lambda:
name=ansible-testing-fake-should-not-be-created
- runtime="python2.7"
+ runtime="python3.9"
register: result
ignore_errors: true
@@ -48,7 +48,7 @@
- name: test with all module required variables but no region
lambda:
name=ansible-testing-fake-should-not-be-created
- runtime="python2.7"
+ runtime="python3.9"
handler="no-handler"
role=arn:fake-role-doesnt-exist
register: result
@@ -65,7 +65,7 @@
lambda:
name: ansible-testing-fake-should-not-be-created
state: present
- runtime: "python2.7"
+ runtime: "python3.9"
role: arn:fake-role-doesnt-exist
handler:
s3_bucket:
@@ -102,7 +102,7 @@
- name: test state=present - upload the lambda
lambda:
name="{{lambda_function_name}}"
- runtime="python2.7"
+ runtime="python3.9"
handler="mini_lambda.handler"
role="ansible_lambda_role"
ec2_region='{{ec2_region}}'
@@ -138,7 +138,7 @@
- name: test state=present with security group but no vpc
lambda:
name: "{{lambda_function_name}}"
- runtime: "python2.7"
+ runtime: "python3.9"
role: "ansible_lambda_role"
ec2_region: '{{ec2_region}}'
ec2_access_key: '{{ec2_access_key}}'
@@ -166,7 +166,7 @@
- name: test state=present with all nullable variables explicitly set to null
lambda:
name: "{{lambda_function_name}}"
- runtime: "python2.7"
+ runtime: "python3.9"
role: "ansible_lambda_role"
ec2_region: '{{ec2_region}}'
ec2_access_key: '{{ec2_access_key}}'
@@ -197,7 +197,7 @@
- name: test putting an environment variable changes lambda
lambda:
name: "{{lambda_function_name}}"
- runtime: "python2.7"
+ runtime: "python3.9"
handler: "mini_lambda.handler"
role: "ansible_lambda_role"
ec2_region: '{{ec2_region}}'
@@ -236,7 +236,7 @@
- name: test state=present triggering a network exception due to bad url
lambda:
name: "{{lambda_function_name}}"
- runtime: "python2.7"
+ runtime: "python3.9"
role: "ansible_lambda_role"
ec2_url: https://noexist.example.com
ec2_region: '{{ec2_region}}'
@@ -276,7 +276,7 @@
- name: parallel lambda creation 1/4
lambda:
name: "{{lambda_function_name}}_1"
- runtime: "python2.7"
+ runtime: "python3.9"
handler: "mini_lambda.handler"
role: "ansible_lambda_role"
ec2_region: '{{ec2_region}}'
@@ -290,7 +290,7 @@
- name: parallel lambda creation 2/4
lambda:
name: "{{lambda_function_name}}_2"
- runtime: "python2.7"
+ runtime: "python3.9"
handler: "mini_lambda.handler"
role: "ansible_lambda_role"
ec2_region: '{{ec2_region}}'
@@ -304,7 +304,7 @@
- name: parallel lambda creation 3/4
lambda:
name: "{{lambda_function_name}}_3"
- runtime: "python2.7"
+ runtime: "python3.9"
handler: "mini_lambda.handler"
role: "ansible_lambda_role"
ec2_region: '{{ec2_region}}'
@@ -318,7 +318,7 @@
- name: parallel lambda creation 4/4
lambda:
name: "{{lambda_function_name}}_4"
- runtime: "python2.7"
+ runtime: "python3.9"
handler: "mini_lambda.handler"
role: "ansible_lambda_role"
ec2_region: '{{ec2_region}}'
diff --git a/test/integration/targets/lambda_policy/tasks/main.yml b/test/integration/targets/lambda_policy/tasks/main.yml
index df525351e5..f321bdeabe 100644
--- a/test/integration/targets/lambda_policy/tasks/main.yml
+++ b/test/integration/targets/lambda_policy/tasks/main.yml
@@ -119,7 +119,7 @@
- name: test state=present - upload the lambda
lambda:
name: "{{lambda_function_name}}"
- runtime: "python2.7"
+ runtime: "python3.9"
handler: "mini_http_lambda.handler"
role: "ansible_lambda_role"
zip_file: "{{zip_res.dest}}"