summaryrefslogtreecommitdiff
path: root/test/certmgr
diff options
context:
space:
mode:
authorLuke Kanies <luke@madstop.com>2005-08-24 21:26:52 +0000
committerLuke Kanies <luke@madstop.com>2005-08-24 21:26:52 +0000
commit66b3355cc3e025f2659d038d4055b5df0dcbe253 (patch)
treea391552f746b87d5fd90102c2bd36139672eed7d /test/certmgr
parent386ebee31dcc67ac5a7fb569ee58c2365e0666e1 (diff)
downloadpuppet-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-xtest/certmgr/tc_certmgr.rb9
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)