2019-04-09 09:18:22 +02:00
|
|
|
---
|
|
|
|
- debug:
|
|
|
|
msg: "Executing tests with backend {{ select_crypto_backend }}"
|
|
|
|
|
|
|
|
- name: ({{select_crypto_backend}}) Get CSR info
|
|
|
|
openssl_csr_info:
|
|
|
|
path: '{{ output_dir }}/csr_1.csr'
|
|
|
|
select_crypto_backend: '{{ select_crypto_backend }}'
|
|
|
|
register: result
|
|
|
|
|
2019-08-17 15:49:54 +02:00
|
|
|
- name: Check whether subject behaves as expected
|
|
|
|
assert:
|
|
|
|
that:
|
|
|
|
- result.subject.organizationalUnitName == 'ACME Department'
|
|
|
|
- "['organizationalUnitName', 'Crypto Department'] in result.subject_ordered"
|
|
|
|
- "['organizationalUnitName', 'ACME Department'] in result.subject_ordered"
|
|
|
|
|
2019-04-09 09:18:22 +02:00
|
|
|
- name: Update result list
|
|
|
|
set_fact:
|
|
|
|
info_results: "{{ info_results + [result] }}"
|
|
|
|
|
|
|
|
- name: ({{select_crypto_backend}}) Get CSR info
|
|
|
|
openssl_csr_info:
|
|
|
|
path: '{{ output_dir }}/csr_2.csr'
|
|
|
|
select_crypto_backend: '{{ select_crypto_backend }}'
|
|
|
|
register: result
|
|
|
|
|
|
|
|
- name: Update result list
|
|
|
|
set_fact:
|
|
|
|
info_results: "{{ info_results + [result] }}"
|
|
|
|
|
|
|
|
- name: ({{select_crypto_backend}}) Get CSR info
|
|
|
|
openssl_csr_info:
|
|
|
|
path: '{{ output_dir }}/csr_3.csr'
|
|
|
|
select_crypto_backend: '{{ select_crypto_backend }}'
|
|
|
|
register: result
|
|
|
|
|
|
|
|
- name: Update result list
|
|
|
|
set_fact:
|
|
|
|
info_results: "{{ info_results + [result] }}"
|
|
|
|
|
|
|
|
- name: ({{select_crypto_backend}}) Get CSR info
|
|
|
|
openssl_csr_info:
|
|
|
|
path: '{{ output_dir }}/csr_4.csr'
|
|
|
|
select_crypto_backend: '{{ select_crypto_backend }}'
|
|
|
|
register: result
|
|
|
|
|
|
|
|
- name: Update result list
|
|
|
|
set_fact:
|
|
|
|
info_results: "{{ info_results + [result] }}"
|