2019-11-05 19:57:08 +01:00
|
|
|
- name: AWS ACM integration test virtualenv wrapper
|
|
|
|
block:
|
|
|
|
- set_fact:
|
|
|
|
virtualenv: "{{ remote_tmp_dir }}/virtualenv"
|
|
|
|
virtualenv_command: "{{ ansible_python_interpreter }} -m virtualenv"
|
2020-02-25 21:48:26 +01:00
|
|
|
|
2019-11-05 19:57:08 +01:00
|
|
|
- set_fact:
|
|
|
|
virtualenv_interpreter: "{{ virtualenv }}/bin/python"
|
2020-02-25 21:48:26 +01:00
|
|
|
|
2020-01-03 01:06:56 +01:00
|
|
|
# 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 }}"
|
2020-02-25 21:48:26 +01:00
|
|
|
|
2019-11-05 19:57:08 +01:00
|
|
|
- pip:
|
|
|
|
name: virtualenv
|
2020-02-25 21:48:26 +01:00
|
|
|
|
2019-11-05 19:57:08 +01:00
|
|
|
- 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
|
2020-02-25 21:48:26 +01:00
|
|
|
|
2019-11-05 19:57:08 +01:00
|
|
|
- include_tasks: full_acm_test.yml
|
|
|
|
vars:
|
|
|
|
ansible_python_interpreter: "{{ virtualenv_interpreter }}"
|
2020-02-25 21:48:26 +01:00
|
|
|
|
2019-11-05 19:57:08 +01:00
|
|
|
always:
|
|
|
|
- file:
|
|
|
|
path: "{{ virtualenv }}"
|
2020-02-25 21:48:26 +01:00
|
|
|
state: absent
|