9d455bed7b
* Cleanup tests * Auto-Retry on ResourceNotFound and RequestInProgress exceptions * Use AnsibleModule options for required_if logic * changelog * Remove (now) duplicate RequestInProgressException catching * Allow a single retry when attempting to fetch the information about a cert directly after deleting it. There is a small chance that it goes away while we pull the details.
39 lines
1,001 B
YAML
39 lines
1,001 B
YAML
- name: AWS ACM integration test virtualenv wrapper
|
|
block:
|
|
- set_fact:
|
|
virtualenv: "{{ remote_tmp_dir }}/virtualenv"
|
|
virtualenv_command: "{{ ansible_python_interpreter }} -m virtualenv"
|
|
|
|
- set_fact:
|
|
virtualenv_interpreter: "{{ virtualenv }}/bin/python"
|
|
|
|
# The CI runs many of these tests in parallel
|
|
# Use this random ID to differentiate which resources
|
|
# are from which test
|
|
- set_fact:
|
|
aws_acm_test_uuid: "{{ (10**9) | random }}"
|
|
|
|
- pip:
|
|
name: virtualenv
|
|
|
|
- pip:
|
|
name:
|
|
- 'botocore<1.13.0,>=1.12.211'
|
|
- boto3
|
|
- coverage
|
|
- jinja2
|
|
- pyyaml
|
|
- 'pyopenssl>=0.15'
|
|
- 'cryptography>=1.6'
|
|
virtualenv: "{{ virtualenv }}"
|
|
virtualenv_command: "{{ virtualenv_command }}"
|
|
virtualenv_site_packages: no
|
|
|
|
- include_tasks: full_acm_test.yml
|
|
vars:
|
|
ansible_python_interpreter: "{{ virtualenv_interpreter }}"
|
|
|
|
always:
|
|
- file:
|
|
path: "{{ virtualenv }}"
|
|
state: absent
|