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
pull/66170/head
Matthew Davis 5 years ago committed by Jill R
parent 0597c5d052
commit 5493ea590c

@ -1,4 +1,3 @@
cloud/aws
aws_acm_info
shippable/aws/group2
disabled

@ -7,20 +7,20 @@ local_certs:
- priv_key: "{{ remote_tmp_dir }}/private-1.pem"
cert: "{{ remote_tmp_dir }}/public-1.pem"
csr: "{{ remote_tmp_dir }}/csr-1.csr"
domain: acm1.ansible.com
name: "{{ resource_prefix }}_1"
domain: "acm1.{{ aws_acm_test_uuid }}.ansible.com"
name: "{{ resource_prefix }}_{{ aws_acm_test_uuid }}_1"
- priv_key: "{{ remote_tmp_dir }}/private-2.pem"
cert: "{{ remote_tmp_dir }}/public-2.pem"
csr: "{{ remote_tmp_dir }}/csr-2.csr"
domain: acm2.ansible.com
name: "{{ resource_prefix }}_2"
domain: "acm2.{{ aws_acm_test_uuid }}.ansible.com"
name: "{{ resource_prefix }}_{{ aws_acm_test_uuid }}_2"
- priv_key: "{{ remote_tmp_dir }}/private-3.pem"
cert: "{{ remote_tmp_dir }}/public-3.pem"
csr: "{{ remote_tmp_dir }}/csr-3.csr"
domain: acm3.ansible.com
name: "{{ resource_prefix }}_3"
domain: "acm3.{{ aws_acm_test_uuid }}.ansible.com"
name: "{{ resource_prefix }}_{{ aws_acm_test_uuid }}_3"
# we'll have one private key
# make 2 chains using it
@ -28,8 +28,8 @@ local_certs:
# not the domain or key
chained_cert:
priv_key: "{{ remote_tmp_dir }}/private-ch-0.pem"
domain: acm-ch.ansible.com
name: "{{ resource_prefix }}_4"
domain: "acm-ch.{{ aws_acm_test_uuid }}.ansible.com"
name: "{{ resource_prefix }}_{{ aws_acm_test_uuid }}_4"
chains:
- cert: "{{ remote_tmp_dir }}/public-ch-0.pem"
csr: "{{ remote_tmp_dir }}/csr-ch-0.csr"

@ -8,7 +8,7 @@
aws_secret_key: "{{ aws_secret_key }}"
security_token: "{{ security_token }}"
no_log: True
# just check this task doesn't fail
# I'm not sure if I can assume there aren't already other certs in this account
- name: list certs

@ -7,6 +7,12 @@
- 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

Loading…
Cancel
Save