summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rwxr-xr-xtest/certmgr/ca.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/certmgr/ca.rb b/test/certmgr/ca.rb
index d01725970..aca674f02 100755
--- a/test/certmgr/ca.rb
+++ b/test/certmgr/ca.rb
@@ -67,6 +67,15 @@ class TestCA < Test::Unit::TestCase
assert_equal(list.sort, ca.list.sort, "list was not correct")
end
+
+ # #142 - test storing the public key
+ def test_store_public_key
+ ca = mkca
+ assert_nothing_raised do
+ ca.mkrootcert
+ end
+ assert(FileTest.exists?(Puppet[:capub]), "did not store public key")
+ end
end
# $Id$