Make sure the ACME inspect tests run with both backends. (#758)
parent
580942878a
commit
f5e6a57ef8
|
@ -28,6 +28,7 @@
|
||||||
acme_version: 2
|
acme_version: 2
|
||||||
validate_certs: false
|
validate_certs: false
|
||||||
method: directory-only
|
method: directory-only
|
||||||
|
select_crypto_backend: "{{ select_crypto_backend }}"
|
||||||
register: directory
|
register: directory
|
||||||
- debug: var=directory
|
- debug: var=directory
|
||||||
|
|
||||||
|
@ -40,6 +41,7 @@
|
||||||
url: "{{ directory.directory.newAccount}}"
|
url: "{{ directory.directory.newAccount}}"
|
||||||
method: post
|
method: post
|
||||||
content: '{"termsOfServiceAgreed":true}'
|
content: '{"termsOfServiceAgreed":true}'
|
||||||
|
select_crypto_backend: "{{ select_crypto_backend }}"
|
||||||
register: account_creation
|
register: account_creation
|
||||||
# account_creation.headers.location contains the account URI
|
# account_creation.headers.location contains the account URI
|
||||||
# if creation was successful
|
# if creation was successful
|
||||||
|
@ -54,6 +56,7 @@
|
||||||
account_uri: "{{ account_creation.headers.location }}"
|
account_uri: "{{ account_creation.headers.location }}"
|
||||||
url: "{{ account_creation.headers.location }}"
|
url: "{{ account_creation.headers.location }}"
|
||||||
method: get
|
method: get
|
||||||
|
select_crypto_backend: "{{ select_crypto_backend }}"
|
||||||
register: account_get
|
register: account_get
|
||||||
- debug: var=account_get
|
- debug: var=account_get
|
||||||
|
|
||||||
|
@ -67,6 +70,7 @@
|
||||||
url: "{{ account_creation.headers.location }}"
|
url: "{{ account_creation.headers.location }}"
|
||||||
method: post
|
method: post
|
||||||
content: '{{ account_info | to_json }}'
|
content: '{{ account_info | to_json }}'
|
||||||
|
select_crypto_backend: "{{ select_crypto_backend }}"
|
||||||
vars:
|
vars:
|
||||||
account_info:
|
account_info:
|
||||||
# For valid values, see
|
# For valid values, see
|
||||||
|
@ -86,6 +90,7 @@
|
||||||
url: "{{ directory.directory.newOrder }}"
|
url: "{{ directory.directory.newOrder }}"
|
||||||
method: post
|
method: post
|
||||||
content: '{{ create_order | to_json }}'
|
content: '{{ create_order | to_json }}'
|
||||||
|
select_crypto_backend: "{{ select_crypto_backend }}"
|
||||||
vars:
|
vars:
|
||||||
create_order:
|
create_order:
|
||||||
# For valid values, see
|
# For valid values, see
|
||||||
|
@ -108,6 +113,7 @@
|
||||||
account_uri: "{{ account_creation.headers.location }}"
|
account_uri: "{{ account_creation.headers.location }}"
|
||||||
url: "{{ new_order.headers.location }}"
|
url: "{{ new_order.headers.location }}"
|
||||||
method: get
|
method: get
|
||||||
|
select_crypto_backend: "{{ select_crypto_backend }}"
|
||||||
register: order
|
register: order
|
||||||
- debug: var=order
|
- debug: var=order
|
||||||
|
|
||||||
|
@ -120,6 +126,7 @@
|
||||||
account_uri: "{{ account_creation.headers.location }}"
|
account_uri: "{{ account_creation.headers.location }}"
|
||||||
url: "{{ item }}"
|
url: "{{ item }}"
|
||||||
method: get
|
method: get
|
||||||
|
select_crypto_backend: "{{ select_crypto_backend }}"
|
||||||
loop: "{{ order.output_json.authorizations }}"
|
loop: "{{ order.output_json.authorizations }}"
|
||||||
register: authz
|
register: authz
|
||||||
- debug: var=authz
|
- debug: var=authz
|
||||||
|
@ -133,6 +140,7 @@
|
||||||
account_uri: "{{ account_creation.headers.location }}"
|
account_uri: "{{ account_creation.headers.location }}"
|
||||||
url: "{{ (item.challenges | selectattr('type', 'equalto', 'http-01') | list)[0].url }}"
|
url: "{{ (item.challenges | selectattr('type', 'equalto', 'http-01') | list)[0].url }}"
|
||||||
method: get
|
method: get
|
||||||
|
select_crypto_backend: "{{ select_crypto_backend }}"
|
||||||
register: http01challenge
|
register: http01challenge
|
||||||
loop: "{{ authz.results | map(attribute='output_json') | list }}"
|
loop: "{{ authz.results | map(attribute='output_json') | list }}"
|
||||||
- debug: var=http01challenge
|
- debug: var=http01challenge
|
||||||
|
@ -147,6 +155,7 @@
|
||||||
url: "{{ item.url }}"
|
url: "{{ item.url }}"
|
||||||
method: post
|
method: post
|
||||||
content: '{}'
|
content: '{}'
|
||||||
|
select_crypto_backend: "{{ select_crypto_backend }}"
|
||||||
register: activation
|
register: activation
|
||||||
loop: "{{ http01challenge.results | map(attribute='output_json') | list }}"
|
loop: "{{ http01challenge.results | map(attribute='output_json') | list }}"
|
||||||
- debug: var=activation
|
- debug: var=activation
|
||||||
|
@ -160,6 +169,7 @@
|
||||||
account_uri: "{{ account_creation.headers.location }}"
|
account_uri: "{{ account_creation.headers.location }}"
|
||||||
url: "{{ item.url }}"
|
url: "{{ item.url }}"
|
||||||
method: get
|
method: get
|
||||||
|
select_crypto_backend: "{{ select_crypto_backend }}"
|
||||||
register: validation_result
|
register: validation_result
|
||||||
loop: "{{ http01challenge.results | map(attribute='output_json') | list }}"
|
loop: "{{ http01challenge.results | map(attribute='output_json') | list }}"
|
||||||
until: "validation_result.output_json.status not in ['pending', 'processing']"
|
until: "validation_result.output_json.status not in ['pending', 'processing']"
|
||||||
|
|
Loading…
Reference in New Issue