summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuke Kanies <luke@madstop.com>2007-11-23 16:45:28 -0600
committerLuke Kanies <luke@madstop.com>2007-11-23 16:45:28 -0600
commita525ab5f1d643dcd890a9f5fb34bbc5dab575393 (patch)
tree8db93d005fea7b7541ba4f2dd6a8724e6241c2d7
parent6d74ddd40a33e54c8007e3a256270e76e56517a0 (diff)
downloadpuppet-a525ab5f1d643dcd890a9f5fb34bbc5dab575393.tar.gz
puppet-a525ab5f1d643dcd890a9f5fb34bbc5dab575393.tar.xz
puppet-a525ab5f1d643dcd890a9f5fb34bbc5dab575393.zip
Fixing a couple of tests that were failing because of the environment changes.
-rwxr-xr-xtest/language/functions.rb1
-rwxr-xr-xtest/network/client/master.rb1
2 files changed, 2 insertions, 0 deletions
diff --git a/test/language/functions.rb b/test/language/functions.rb
index 2fc36f6cd..70dd6af7b 100755
--- a/test/language/functions.rb
+++ b/test/language/functions.rb
@@ -205,6 +205,7 @@ class TestLangFunctions < Test::Unit::TestCase
file = tempfile()
Puppet[:code] = %{file { "#{file}": content => template("#{template}") }}
+ Puppet[:environments] = "yay"
interp = Puppet::Parser::Interpreter.new
node = mknode
node.stubs(:environment).returns("yay")
diff --git a/test/network/client/master.rb b/test/network/client/master.rb
index 7216af936..a005dadc7 100755
--- a/test/network/client/master.rb
+++ b/test/network/client/master.rb
@@ -545,6 +545,7 @@ end
assert_equal(facts["environment"], Puppet[:environment], "Did not add environment to client facts")
# Now set it to a real value
+ Puppet[:environments] = "something,else"
Puppet[:environment] = "something"
facts = Puppet::Network::Client::Master.facts
assert_equal(facts["environment"], Puppet[:environment], "Did not add environment to client facts")