summaryrefslogtreecommitdiff
path: root/test/integration/targets/openssl_csr/tasks/main.yml
diff options
context:
space:
mode:
authorYanis Guenane <yguenane@gmail.com>2017-07-25 13:18:18 +0200
committerJohn R Barker <john@johnrbarker.com>2017-07-25 12:18:18 +0100
commit8b22c45a454789abdc5b9a3bd8f3c0525be0a8b5 (patch)
tree1c77f121233203b8050bcf23228d2c7ad166e7a1 /test/integration/targets/openssl_csr/tasks/main.yml
parentb3e8fa72ce84b35d91ebd097b3fce363d174c453 (diff)
downloadansible-8b22c45a454789abdc5b9a3bd8f3c0525be0a8b5.tar.gz
Enable integration tests for the crypto/ namespace (#26684)
Crypto namespace contains the openssl modules. It has no integration testing as of now. This commits aims to add integration tests for the crypto namespace. This will make it easier to spot breaking changes in the future. This tests currently apply to: * openssl_privatekey * openssl_publickey * openssl_csr
Diffstat (limited to 'test/integration/targets/openssl_csr/tasks/main.yml')
-rw-r--r--test/integration/targets/openssl_csr/tasks/main.yml11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/integration/targets/openssl_csr/tasks/main.yml b/test/integration/targets/openssl_csr/tasks/main.yml
new file mode 100644
index 0000000000..48f3a489ef
--- /dev/null
+++ b/test/integration/targets/openssl_csr/tasks/main.yml
@@ -0,0 +1,11 @@
+- name: Generate privatekey
+ openssl_privatekey:
+ path: '{{ output_dir }}/privatekey.pem'
+
+- name: Generate CSR
+ openssl_csr:
+ path: '{{ output_dir }}/csr.csr'
+ privatekey_path: '{{ output_dir }}/privatekey.pem'
+ commonName: 'www.ansible.com'
+
+- import_tasks: ../tests/validate.yml