diff options
| author | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2005-10-21 06:16:43 +0000 |
|---|---|---|
| committer | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2005-10-21 06:16:43 +0000 |
| commit | a232e5c6ef359b600cdbc618a9791f8eda8eb081 (patch) | |
| tree | 7ec9cc3700f0daae1b5216a9afd0f220a553f9b6 /test/executables | |
| parent | a6d02920d360ac06815dcf08f3350ba92088301d (diff) | |
| download | puppet-a232e5c6ef359b600cdbc618a9791f8eda8eb081.tar.gz puppet-a232e5c6ef359b600cdbc618a9791f8eda8eb081.tar.xz puppet-a232e5c6ef359b600cdbc618a9791f8eda8eb081.zip | |
Made tweaks here and there to get it running better on my local network. I am inches away from that happening. All tests pass.
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@720 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'test/executables')
| -rwxr-xr-x | test/executables/tc_puppetca.rb | 4 | ||||
| -rwxr-xr-x | test/executables/tc_puppetd.rb | 5 |
2 files changed, 5 insertions, 4 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] diff --git a/test/executables/tc_puppetd.rb b/test/executables/tc_puppetd.rb index e7a55b480..72cf1f031 100755 --- a/test/executables/tc_puppetd.rb +++ b/test/executables/tc_puppetd.rb @@ -36,7 +36,7 @@ class TestPuppetDExe < Test::Unit::TestCase cmd = "puppetd" cmd += " --verbose" - cmd += " --fqdn %s" % fqdn + #cmd += " --fqdn %s" % fqdn cmd += " --port %s" % @@port cmd += " --ssldir %s" % Puppet[:ssldir] cmd += " --server localhost" @@ -44,11 +44,10 @@ class TestPuppetDExe < Test::Unit::TestCase # and verify our daemon runs assert_nothing_raised { output = %x{#{cmd}}.chomp + puts output } sleep 1 assert($? == 0, "Puppetd exited with code %s" % $?) - #puts output - #assert_equal("", output, "Puppetd produced output %s" % output) assert(FileTest.exists?(@createdfile), "Failed to create config'ed file") |
