diff options
author | Luke Kanies <luke@madstop.com> | 2005-08-24 21:26:52 +0000 |
---|---|---|
committer | Luke Kanies <luke@madstop.com> | 2005-08-24 21:26:52 +0000 |
commit | 66b3355cc3e025f2659d038d4055b5df0dcbe253 (patch) | |
tree | a391552f746b87d5fd90102c2bd36139672eed7d /test/certmgr | |
parent | 386ebee31dcc67ac5a7fb569ee58c2365e0666e1 (diff) | |
download | puppet-66b3355cc3e025f2659d038d4055b5df0dcbe253.tar.gz |
Certificates now verify!
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@588 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'test/certmgr')
-rwxr-xr-x | test/certmgr/tc_certmgr.rb | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/test/certmgr/tc_certmgr.rb b/test/certmgr/tc_certmgr.rb index e00acd067..b67ff920d 100755 --- a/test/certmgr/tc_certmgr.rb +++ b/test/certmgr/tc_certmgr.rb @@ -2,8 +2,7 @@ if __FILE__ == $0 $:.unshift '../../lib' - $:.unshift '../../../../library/trunk/lib/' - $:.unshift '../../../../library/trunk/test/' + $:.unshift '..' $puppetbase = "../.." end @@ -196,14 +195,16 @@ class TestCertMgr < Test::Unit::TestCase cert.write } #system("find %s" % Puppet[:ssldir]) + #system("cp -R %s /tmp/ssltesting" % Puppet[:ssldir]) output = nil assert_nothing_raised { - output = %x{openssl verify -CApath #{Puppet[:certdir]} -purpose sslserver #{cert.certfile}} + output = %x{openssl verify -CAfile #{Puppet[:cacert]} -purpose sslserver #{cert.certfile}} + #output = %x{openssl verify -CApath #{Puppet[:certdir]} -purpose sslserver #{cert.certfile}} } assert_equal($?,0) - assert_equal("\n", output) + assert_equal("/tmp/puppetcertestingdir/certs/signedcertest.pem: OK\n", output) end def mkcert(hostname) |