summaryrefslogtreecommitdiffstats
path: root/test/executables/puppetd.rb
diff options
context:
space:
mode:
authorLuke Kanies <luke@madstop.com>2009-02-19 16:51:50 -0600
committerLuke Kanies <luke@madstop.com>2009-02-19 17:51:22 -0600
commitc0d5037d11643fd551fdc9f20a9e0ba196c5345a (patch)
treec206a8dcd267b61d6ed1bf17d374558126672992 /test/executables/puppetd.rb
parent262937ff6e505bbf86d15500279ff23398f9e1c8 (diff)
downloadpuppet-c0d5037d11643fd551fdc9f20a9e0ba196c5345a.tar.gz
puppet-c0d5037d11643fd551fdc9f20a9e0ba196c5345a.tar.xz
puppet-c0d5037d11643fd551fdc9f20a9e0ba196c5345a.zip
Removing or fixing old tests
Most of these were just obsolete tests that have been sitting around and broke with recent internal changes. Signed-off-by: Luke Kanies <luke@madstop.com>
Diffstat (limited to 'test/executables/puppetd.rb')
-rwxr-xr-xtest/executables/puppetd.rb55
1 files changed, 0 insertions, 55 deletions
diff --git a/test/executables/puppetd.rb b/test/executables/puppetd.rb
deleted file mode 100755
index d770ff91e..000000000
--- a/test/executables/puppetd.rb
+++ /dev/null
@@ -1,55 +0,0 @@
-#!/usr/bin/env ruby
-
-require File.dirname(__FILE__) + '/../lib/puppettest'
-
-require 'puppet'
-require 'puppet/network/client'
-require 'puppettest'
-require 'socket'
-require 'facter'
-
-class TestPuppetDExe < Test::Unit::TestCase
- include PuppetTest::ExeTest
- def setup
- super
- Puppet[:certdnsnames] = "localhost"
- # start the master
- @manifest = startmasterd
-
-
- @cmd = "puppetd"
- @cmd += " --verbose"
- @cmd += " --test"
- @cmd += " --masterport %s" % @@port
- @cmd += " --confdir %s" % Puppet[:confdir]
- @cmd += " --rundir %s" % File.join(Puppet[:vardir], "run")
- @cmd += " --vardir %s" % Puppet[:vardir]
- @cmd += " --server localhost"
- end
-
- def test_normalstart
- # and verify our daemon runs
- output = nil
- assert_nothing_raised {
- output = %x{#{@cmd} 2>&1}
- }
- sleep 1
- assert($? == 0, "Puppetd exited with code %s" % $?)
-
- assert(FileTest.exists?(@createdfile), "Failed to create file %s" % @createdfile)
- end
-
- # now verify that --noop works
- def test_noop_start
- @cmd += " --noop"
- assert_nothing_raised {
- output = %x{#{@cmd}}.chomp
- }
- sleep 1
- assert($? == 0, "Puppetd exited with code %s" % $?)
-
- assert(! FileTest.exists?(@createdfile),
- "Noop created config'ed file")
- end
-end
-