Skip to content

Commit

Permalink
Revert "Temporarily comment out tests causing CI errors (ansible#35883)"
Browse files Browse the repository at this point in the history
This reverts commit 157a41c.

Have a fix for the underlying issue so reenabling the tests
  • Loading branch information
abadger committed Feb 8, 2018
1 parent 5c085b2 commit abbac1a
Showing 1 changed file with 148 additions and 148 deletions.
296 changes: 148 additions & 148 deletions test/integration/targets/aws_lambda/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -273,154 +273,154 @@
# ============================================================
# parallel lambda creation

#- name: parallel lambda creation 1/4
# lambda:
# name: "{{lambda_function_name}}_1"
# runtime: "python2.7"
# handler: "mini_lambda.handler"
# role: "ansible_lambda_role"
# ec2_region: '{{ec2_region}}'
# ec2_access_key: '{{ec2_access_key}}'
# ec2_secret_key: '{{ec2_secret_key}}'
# security_token: '{{security_token}}'
# zip_file: "{{zip_res.dest}}"
# async: 1000
# register: async_1

#- name: parallel lambda creation 2/4
# lambda:
# name: "{{lambda_function_name}}_2"
# runtime: "python2.7"
# handler: "mini_lambda.handler"
# role: "ansible_lambda_role"
# ec2_region: '{{ec2_region}}'
# ec2_access_key: '{{ec2_access_key}}'
# ec2_secret_key: '{{ec2_secret_key}}'
# security_token: '{{security_token}}'
# zip_file: "{{zip_res.dest}}"
# async: 1000
# register: async_2

#- name: parallel lambda creation 3/4
# lambda:
# name: "{{lambda_function_name}}_3"
# runtime: "python2.7"
# handler: "mini_lambda.handler"
# role: "ansible_lambda_role"
# ec2_region: '{{ec2_region}}'
# ec2_access_key: '{{ec2_access_key}}'
# ec2_secret_key: '{{ec2_secret_key}}'
# security_token: '{{security_token}}'
# zip_file: "{{zip_res.dest}}"
# async: 1000
# register: async_3

#- name: parallel lambda creation 4/4
# lambda:
# name: "{{lambda_function_name}}_4"
# runtime: "python2.7"
# handler: "mini_lambda.handler"
# role: "ansible_lambda_role"
# ec2_region: '{{ec2_region}}'
# ec2_access_key: '{{ec2_access_key}}'
# ec2_secret_key: '{{ec2_secret_key}}'
# security_token: '{{security_token}}'
# zip_file: "{{zip_res.dest}}"
# register: result

#- name: assert lambda manages to respond as expected
# assert:
# that:
# - 'result is not failed'

#- name: wait for async job 1
# async_status: jid={{ async_1.ansible_job_id }}
# register: job_result
# until: job_result.finished
# retries: 30

#- name: wait for async job 2
# async_status: jid={{ async_1.ansible_job_id }}
# register: job_result
# until: job_result.finished
# retries: 30

#- name: wait for async job 3
# async_status: jid={{ async_3.ansible_job_id }}
# register: job_result
# until: job_result.finished
# retries: 30


#- name: parallel lambda deletion 1/4
# lambda:
# name: "{{lambda_function_name}}_1"
# state: absent
# ec2_region: '{{ec2_region}}'
# ec2_access_key: '{{ec2_access_key}}'
# ec2_secret_key: '{{ec2_secret_key}}'
# security_token: '{{security_token}}'
# zip_file: "{{zip_res.dest}}"
# async: 1000
# register: async_1

#- name: parallel lambda deletion 2/4
# lambda:
# name: "{{lambda_function_name}}_2"
# state: absent
# ec2_region: '{{ec2_region}}'
# ec2_access_key: '{{ec2_access_key}}'
# ec2_secret_key: '{{ec2_secret_key}}'
# security_token: '{{security_token}}'
# zip_file: "{{zip_res.dest}}"
# async: 1000
# register: async_2

#- name: parallel lambda deletion 3/4
# lambda:
# name: "{{lambda_function_name}}_3"
# state: absent
# ec2_region: '{{ec2_region}}'
# ec2_access_key: '{{ec2_access_key}}'
# ec2_secret_key: '{{ec2_secret_key}}'
# security_token: '{{security_token}}'
# zip_file: "{{zip_res.dest}}"
# async: 1000
# register: async_3

#- name: parallel lambda deletion 4/4
# lambda:
# name: "{{lambda_function_name}}_4"
# state: absent
# ec2_region: '{{ec2_region}}'
# ec2_access_key: '{{ec2_access_key}}'
# ec2_secret_key: '{{ec2_secret_key}}'
# security_token: '{{security_token}}'
# zip_file: "{{zip_res.dest}}"
# register: result

#- name: assert lambda creation has succeeded
# assert:
# that:
# - 'result is not failed'

#- name: wait for async job 1
# async_status: jid={{ async_1.ansible_job_id }}
# register: job_result
# until: job_result.finished
# retries: 30

#- name: wait for async job 2
# async_status: jid={{ async_1.ansible_job_id }}
# register: job_result
# until: job_result.finished
# retries: 30

#- name: wait for async job 3
# async_status: jid={{ async_3.ansible_job_id }}
# register: job_result
# until: job_result.finished
# retries: 30
- name: parallel lambda creation 1/4
lambda:
name: "{{lambda_function_name}}_1"
runtime: "python2.7"
handler: "mini_lambda.handler"
role: "ansible_lambda_role"
ec2_region: '{{ec2_region}}'
ec2_access_key: '{{ec2_access_key}}'
ec2_secret_key: '{{ec2_secret_key}}'
security_token: '{{security_token}}'
zip_file: "{{zip_res.dest}}"
async: 1000
register: async_1

- name: parallel lambda creation 2/4
lambda:
name: "{{lambda_function_name}}_2"
runtime: "python2.7"
handler: "mini_lambda.handler"
role: "ansible_lambda_role"
ec2_region: '{{ec2_region}}'
ec2_access_key: '{{ec2_access_key}}'
ec2_secret_key: '{{ec2_secret_key}}'
security_token: '{{security_token}}'
zip_file: "{{zip_res.dest}}"
async: 1000
register: async_2

- name: parallel lambda creation 3/4
lambda:
name: "{{lambda_function_name}}_3"
runtime: "python2.7"
handler: "mini_lambda.handler"
role: "ansible_lambda_role"
ec2_region: '{{ec2_region}}'
ec2_access_key: '{{ec2_access_key}}'
ec2_secret_key: '{{ec2_secret_key}}'
security_token: '{{security_token}}'
zip_file: "{{zip_res.dest}}"
async: 1000
register: async_3

- name: parallel lambda creation 4/4
lambda:
name: "{{lambda_function_name}}_4"
runtime: "python2.7"
handler: "mini_lambda.handler"
role: "ansible_lambda_role"
ec2_region: '{{ec2_region}}'
ec2_access_key: '{{ec2_access_key}}'
ec2_secret_key: '{{ec2_secret_key}}'
security_token: '{{security_token}}'
zip_file: "{{zip_res.dest}}"
register: result

- name: assert lambda manages to respond as expected
assert:
that:
- 'result is not failed'

- name: wait for async job 1
async_status: jid={{ async_1.ansible_job_id }}
register: job_result
until: job_result.finished
retries: 30

- name: wait for async job 2
async_status: jid={{ async_1.ansible_job_id }}
register: job_result
until: job_result.finished
retries: 30

- name: wait for async job 3
async_status: jid={{ async_3.ansible_job_id }}
register: job_result
until: job_result.finished
retries: 30


- name: parallel lambda deletion 1/4
lambda:
name: "{{lambda_function_name}}_1"
state: absent
ec2_region: '{{ec2_region}}'
ec2_access_key: '{{ec2_access_key}}'
ec2_secret_key: '{{ec2_secret_key}}'
security_token: '{{security_token}}'
zip_file: "{{zip_res.dest}}"
async: 1000
register: async_1

- name: parallel lambda deletion 2/4
lambda:
name: "{{lambda_function_name}}_2"
state: absent
ec2_region: '{{ec2_region}}'
ec2_access_key: '{{ec2_access_key}}'
ec2_secret_key: '{{ec2_secret_key}}'
security_token: '{{security_token}}'
zip_file: "{{zip_res.dest}}"
async: 1000
register: async_2

- name: parallel lambda deletion 3/4
lambda:
name: "{{lambda_function_name}}_3"
state: absent
ec2_region: '{{ec2_region}}'
ec2_access_key: '{{ec2_access_key}}'
ec2_secret_key: '{{ec2_secret_key}}'
security_token: '{{security_token}}'
zip_file: "{{zip_res.dest}}"
async: 1000
register: async_3

- name: parallel lambda deletion 4/4
lambda:
name: "{{lambda_function_name}}_4"
state: absent
ec2_region: '{{ec2_region}}'
ec2_access_key: '{{ec2_access_key}}'
ec2_secret_key: '{{ec2_secret_key}}'
security_token: '{{security_token}}'
zip_file: "{{zip_res.dest}}"
register: result

- name: assert lambda creation has succeeded
assert:
that:
- 'result is not failed'

- name: wait for async job 1
async_status: jid={{ async_1.ansible_job_id }}
register: job_result
until: job_result.finished
retries: 30

- name: wait for async job 2
async_status: jid={{ async_1.ansible_job_id }}
register: job_result
until: job_result.finished
retries: 30

- name: wait for async job 3
async_status: jid={{ async_3.ansible_job_id }}
register: job_result
until: job_result.finished
retries: 30


# ============================================================
Expand Down

0 comments on commit abbac1a

Please sign in to comment.