summaryrefslogtreecommitdiffstats
path: root/test/network/handler/runner.rb
diff options
context:
space:
mode:
authorLuke Kanies <luke@madstop.com>2007-10-05 14:25:29 -0500
committerLuke Kanies <luke@madstop.com>2007-10-05 14:25:29 -0500
commitf084d83df1abf51766e2dd390e118f1189864346 (patch)
treecbff216064768461dac362abab515c3f1ba6e349 /test/network/handler/runner.rb
parent9c58c476c2ffcf9613f14e5881b1177f01d413a7 (diff)
downloadpuppet-f084d83df1abf51766e2dd390e118f1189864346.tar.gz
puppet-f084d83df1abf51766e2dd390e118f1189864346.tar.xz
puppet-f084d83df1abf51766e2dd390e118f1189864346.zip
Another round of test-fixing around the changes I made
to the configuration system. 'puppet' itself still works, even with -e, but I expect that puppetd and puppetmasterd are broken, and there are still quite a few broken tests because the default fact store can't write but that's the default behaviour for a networked configuration master.
Diffstat (limited to 'test/network/handler/runner.rb')
-rwxr-xr-xtest/network/handler/runner.rb11
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 {