summaryrefslogtreecommitdiffstats
path: root/test/network
diff options
context:
space:
mode:
authorJames Turnbull <james@lovedthanlost.net>2008-03-03 11:59:14 +1100
committerJames Turnbull <james@lovedthanlost.net>2008-03-03 11:59:14 +1100
commit281448fb47a7c88bf8d1c3222d03264ecfaeb183 (patch)
tree1e8bb91ed20fd1385c63cff8d5aa77db7eb1f68d /test/network
parentf1d75c8bc2604ea396c6d88ba7eef866f48f6046 (diff)
parentba803a1fb8190997f277b83d50c531b446b2a67f (diff)
downloadpuppet-281448fb47a7c88bf8d1c3222d03264ecfaeb183.tar.gz
puppet-281448fb47a7c88bf8d1c3222d03264ecfaeb183.tar.xz
puppet-281448fb47a7c88bf8d1c3222d03264ecfaeb183.zip
Merge branch '0.24.x' of git://reductivelabs.com/puppet into 0.24.x
Diffstat (limited to 'test/network')
-rwxr-xr-xtest/network/client/master.rb10
1 files changed, 1 insertions, 9 deletions
diff --git a/test/network/client/master.rb b/test/network/client/master.rb
index 67c47fa6d..41796575f 100755
--- a/test/network/client/master.rb
+++ b/test/network/client/master.rb
@@ -216,15 +216,7 @@ end
name = "environment"
value = "test_environment"
- Puppet[:filetimeout] = -1
- Puppet[:factsource] = tempfile()
- Dir.mkdir(Puppet[:factsource])
- file = File.join(Puppet[:factsource], "#{name}.rb")
- File.open(file, "w") do |f|
- f.puts %{Facter.add("#{name}") do setcode { "#{value}" } end }
- end
-
- Puppet::Network::Client.master.getfacts
+ Facter.stubs(:to_hash).returns(name => value)
assert_equal(value, Puppet::Network::Client.master.facts[name])
end