diff --git a/tests/integration/targets/acme_certificate_order/tasks/impl.yml b/tests/integration/targets/acme_certificate_order/tasks/impl.yml index 13e7d9b19..01a5ec9f5 100644 --- a/tests/integration/targets/acme_certificate_order/tasks/impl.yml +++ b/tests/integration/targets/acme_certificate_order/tasks/impl.yml @@ -146,7 +146,44 @@ - validate_1 is changed - validate_1.account_uri == account.account_uri -- name: Get order information +- name: Get order information (1/2) + acme_certificate_order_info: + acme_directory: https://{{ acme_host }}:14000/dir + acme_version: 2 + validate_certs: false + account_key_src: "{{ remote_tmp_dir }}/accountkey.pem" + select_crypto_backend: "{{ select_crypto_backend }}" + order_uri: "{{ order.order_uri }}" + register: order_info_2 + +- name: Get authz + acme_inspect: + acme_directory: https://{{ acme_host }}:14000/dir + acme_version: 2 + validate_certs: false + account_key_src: "{{ remote_tmp_dir }}/accountkey.pem" + account_uri: "{{ order_info_2.account_uri }}" + select_crypto_backend: "{{ select_crypto_backend }}" + method: get + url: >- + {{ order_info_2.authorizations_by_identifier['dns:' ~ domain_name].uri }} + +- name: Get http-01 challenge + acme_inspect: + acme_directory: https://{{ acme_host }}:14000/dir + acme_version: 2 + validate_certs: false + account_key_src: "{{ remote_tmp_dir }}/accountkey.pem" + account_uri: "{{ order_info_2.account_uri }}" + select_crypto_backend: "{{ select_crypto_backend }}" + method: get + url: >- + {{ order_info_2.authorizations_by_identifier['dns:' ~ domain_name].challenges | selectattr('type', 'equalto', 'http-01') | map(attribute='url') | first }} + +- pause: + seconds: 1 + +- name: Get order information (2/2) acme_certificate_order_info: acme_directory: https://{{ acme_host }}:14000/dir acme_version: 2 @@ -160,6 +197,11 @@ debug: var: order_info_2 +- debug: + var: order_info_2.authorizations_by_identifier['dns:' ~ domain_name].challenges | selectattr('type', 'equalto', 'http-01') | map(attribute='status') | first | default('not there') +- debug: + var: order_info_2.authorizations_by_identifier['dns:' ~ domain_name].challenges | selectattr('type', 'equalto', 'dns-01') | map(attribute='status') | first | default('not there') + - name: Check order information assert: that: