diff options
| author | Rick Bradley <rick@rickbradley.com> | 2007-10-06 13:25:12 -0500 |
|---|---|---|
| committer | Rick Bradley <rick@rickbradley.com> | 2007-10-06 13:25:12 -0500 |
| commit | 42b98562b5237797e1a51fdcdd57aa3c6825b404 (patch) | |
| tree | 0f5cc25fb42b348f3c851c988f3b86979871794a /test/network/handler | |
| parent | 1befcc46926a27ec5f799d6ad8caa59c3b808c4c (diff) | |
| parent | cdaad286b1fe5fc3c1ab363c890bb6a8a752c9b5 (diff) | |
Merge branch 'master' of git://reductivelabs.com/puppet into routing
Diffstat (limited to 'test/network/handler')
| -rwxr-xr-x | test/network/handler/runner.rb | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/test/network/handler/runner.rb b/test/network/handler/runner.rb index 23883a17c..50a00862a 100755 --- a/test/network/handler/runner.rb +++ b/test/network/handler/runner.rb @@ -7,15 +7,14 @@ require 'puppettest' class TestHandlerRunner < Test::Unit::TestCase include PuppetTest - def mkclient(file) + def mkclient(code) master = nil client = nil + Puppet[:code] = code # create our master assert_nothing_raised() { # this is the default server setup master = Puppet::Network::Handler.master.new( - :Manifest => file, - :UseNodes => false, :Local => true ) } @@ -38,8 +37,7 @@ class TestHandlerRunner < Test::Unit::TestCase created = tempfile() # We specify the schedule here, because I was having problems with # using default schedules. - File.open(file, "w") do |f| - f.puts %{ + code = %{ class yayness { schedule { "yayness": period => weekly } file { "#{created}": ensure => file, schedule => yayness } @@ -47,9 +45,8 @@ class TestHandlerRunner < Test::Unit::TestCase include yayness } - end - client = mkclient(file) + client = mkclient(code) runner = nil assert_nothing_raised { |
