summaryrefslogtreecommitdiffstats
path: root/test/client
diff options
context:
space:
mode:
authorluke <luke@980ebf18-57e1-0310-9a29-db15c13687c0>2006-06-08 16:32:34 +0000
committerluke <luke@980ebf18-57e1-0310-9a29-db15c13687c0>2006-06-08 16:32:34 +0000
commitd6d05d4e3d2aafa95a0af8705b6b2f03367ac451 (patch)
treeae1b3cf519c83fe587d2598ca2b1b596d9df2739 /test/client
parent1cef8f576cf21f715f497e6ff9e350aea9c2a93d (diff)
downloadpuppet-d6d05d4e3d2aafa95a0af8705b6b2f03367ac451.tar.gz
puppet-d6d05d4e3d2aafa95a0af8705b6b2f03367ac451.tar.xz
puppet-d6d05d4e3d2aafa95a0af8705b6b2f03367ac451.zip
Fixing #154. Basically just accepted the patch that fixes master.rb and added a test case for it.
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1242 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'test/client')
-rw-r--r--test/client/master.rb18
1 files changed, 18 insertions, 0 deletions
diff --git a/test/client/master.rb b/test/client/master.rb
index d5af1b82d..06590721f 100644
--- a/test/client/master.rb
+++ b/test/client/master.rb
@@ -115,4 +115,22 @@ class TestMasterClient < Test::Unit::TestCase
end
assert(! client.locked?)
end
+
+ # Make sure non-string facts don't make things go kablooie
+ def test_nonstring_facts
+ # Add a nonstring fact
+ Facter.add(:nonstring) do
+ setcode { 1 }
+ end
+
+ assert_equal(1, Facter.nonstring, "Fact was a string from facter")
+
+ client = mkclient()
+
+ assert(! FileTest.exists?(@createdfile))
+
+ assert_nothing_raised {
+ client.run
+ }
+ end
end