diff options
Diffstat (limited to 'test/integration/targets/openssl_csr/tasks/main.yml')
-rw-r--r-- | test/integration/targets/openssl_csr/tasks/main.yml | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/test/integration/targets/openssl_csr/tasks/main.yml b/test/integration/targets/openssl_csr/tasks/main.yml index 23197b1e3e..fcbf03b22c 100644 --- a/test/integration/targets/openssl_csr/tasks/main.yml +++ b/test/integration/targets/openssl_csr/tasks/main.yml @@ -156,6 +156,37 @@ ocsp_must_staple: true register: csr_ocsp_idempotency + - name: Generate CSR with country name + openssl_csr: + path: '{{ output_dir }}/csr4.csr' + privatekey_path: '{{ output_dir }}/privatekey.pem' + country_name: de + register: country_idempotent_1 + + - name: Generate CSR with country name (idempotent) + openssl_csr: + path: '{{ output_dir }}/csr4.csr' + privatekey_path: '{{ output_dir }}/privatekey.pem' + country_name: de + register: country_idempotent_2 + + - name: Generate CSR with country name (idempotent 2) + openssl_csr: + path: '{{ output_dir }}/csr4.csr' + privatekey_path: '{{ output_dir }}/privatekey.pem' + subject: + C: de + register: country_idempotent_3 + + - name: Generate CSR with country name (bad country name) + openssl_csr: + path: '{{ output_dir }}/csr4.csr' + privatekey_path: '{{ output_dir }}/privatekey.pem' + subject: + C: dex + register: country_fail_4 + ignore_errors: yes + - import_tasks: ../tests/validate.yml when: pyopenssl_version.stdout is version('0.15', '>=') |