ansible/test/integration/targets/aws_acm/tasks/main.yml
Matthew Davis 5493ea590c make concurrent aws_acm integration tests not clash (#64660)
* add uuid for aws_acm test resources, allow concurrent tests

* remove debug task in aws_acm int test
2020-01-02 17:06:56 -07:00

39 lines
No EOL
1,012 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