summaryrefslogtreecommitdiffstats
path: root/test/executables/tc_puppetca.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/executables/tc_puppetca.rb')
-rwxr-xr-xtest/executables/tc_puppetca.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/executables/tc_puppetca.rb b/test/executables/tc_puppetca.rb
index 61b83b178..2fed58557 100755
--- a/test/executables/tc_puppetca.rb
+++ b/test/executables/tc_puppetca.rb
@@ -49,7 +49,9 @@ class TestPuppetCA < Test::Unit::TestCase
cert = mkcert("host.test.com")
resp = nil
assert_nothing_raised {
- resp = ca.getcert(cert.csr.to_pem)
+ # We need to use a fake name so it doesn't think the cert is from
+ # itself.
+ resp = ca.getcert(cert.csr.to_pem, "fakename", "127.0.0.1")
}
assert_equal(["",""], resp)
#Puppet.warning "SSLDir is %s" % Puppet[:ssldir]