summaryrefslogtreecommitdiff
path: root/kitchen-tests/test/integration/end-to-end/_openssl.rb
diff options
context:
space:
mode:
Diffstat (limited to 'kitchen-tests/test/integration/end-to-end/_openssl.rb')
-rw-r--r--kitchen-tests/test/integration/end-to-end/_openssl.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/kitchen-tests/test/integration/end-to-end/_openssl.rb b/kitchen-tests/test/integration/end-to-end/_openssl.rb
new file mode 100644
index 0000000000..c68889f3bb
--- /dev/null
+++ b/kitchen-tests/test/integration/end-to-end/_openssl.rb
@@ -0,0 +1,6 @@
+# Reference recipes/_openssl.rb test to 'generate and sign a certificate with the CA'
+# This ensures that the generated certificate is valid.
+describe command("/opt/chef/embedded/bin/openssl verify -CAfile /etc/ssl_test/my_ca.crt /etc/ssl_test/my_signed_cert.crt") do
+ its("stdout") { should match /my_signed_cert.*OK/ }
+ its("stderr") { should be_empty }
+end