diff options
| author | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2006-09-05 20:53:43 +0000 |
|---|---|---|
| committer | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2006-09-05 20:53:43 +0000 |
| commit | 41c90815e16dc65103c617ce56a071902ff93123 (patch) | |
| tree | f382a08e38aa87562aae431167bdbda7c78880b4 /test/client | |
| parent | 46fbf95b16622d33bcb791f0489bee1f87fb33e5 (diff) | |
| download | puppet-41c90815e16dc65103c617ce56a071902ff93123.tar.gz puppet-41c90815e16dc65103c617ce56a071902ff93123.tar.xz puppet-41c90815e16dc65103c617ce56a071902ff93123.zip | |
Adding the Daemon module back into the Client class, which fixes #247.
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1563 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'test/client')
| -rw-r--r-- | test/client/client.rb | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/test/client/client.rb b/test/client/client.rb index 5bd947657..fa382392e 100644 --- a/test/client/client.rb +++ b/test/client/client.rb @@ -173,4 +173,25 @@ class TestClient < Test::Unit::TestCase assert_equal(%w{bootest yaytest}, classes.sort) end + + def test_setpidfile + $clientrun = false + newclass = Class.new(Puppet::Client) do + def run + $clientrun = true + end + + def initialize + end + end + + inst = newclass.new + + assert_nothing_raised { + inst.start + } + + assert(FileTest.exists?(inst.pidfile), + "PID file was not created") + end end |
