summaryrefslogtreecommitdiffstats
path: root/test/puppet
diff options
context:
space:
mode:
authorLuke Kanies <luke@madstop.com>2005-08-02 00:24:18 +0000
committerLuke Kanies <luke@madstop.com>2005-08-02 00:24:18 +0000
commit74dac8fd6f46c35cf79b15f1f7358bc32d4c7716 (patch)
tree8b123cbd0b481d443cb882c704e7f2e16934d702 /test/puppet
parent8bf85e2faeb8a4776b64cf6cebac4733ff3739d5 (diff)
downloadpuppet-74dac8fd6f46c35cf79b15f1f7358bc32d4c7716.tar.gz
puppet-74dac8fd6f46c35cf79b15f1f7358bc32d4c7716.tar.xz
puppet-74dac8fd6f46c35cf79b15f1f7358bc32d4c7716.zip
adding some consistency and tests to the whole puppet defaults system
git-svn-id: https://reductivelabs.com/svn/puppet/library/trunk@485 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'test/puppet')
-rwxr-xr-xtest/puppet/tc_defaults.rb10
1 files changed, 6 insertions, 4 deletions
diff --git a/test/puppet/tc_defaults.rb b/test/puppet/tc_defaults.rb
index 1fc45a89e..d6fe09146 100755
--- a/test/puppet/tc_defaults.rb
+++ b/test/puppet/tc_defaults.rb
@@ -10,9 +10,9 @@ require 'test/unit'
# $Id$
class TestPuppetDefaults < Test::Unit::TestCase
- @@dirs = %w{rrddir puppetconf puppetvar logdir statedir certdir}
+ @@dirs = %w{rrddir puppetconf puppetvar logdir statedir certdir bucketdir}
@@files = %w{logfile checksumfile localcert localkey localpub mastercert masterkey masterpub}
- @@booleans = %w{rrdgraph}
+ @@booleans = %w{rrdgraph noop}
def testStringOrParam
[@@dirs,@@files,@@booleans].flatten.each { |param|
assert_nothing_raised { Puppet[param] }
@@ -40,7 +40,8 @@ class TestPuppetDefaults < Test::Unit::TestCase
value = Puppet[param]
unless value =~ confdir or value =~ vardir
- assert_nothing_raised { raise "%s is in wrong dir" % value }
+ assert_nothing_raised { raise "%s is in wrong dir: %s" %
+ [param,value] }
end
}
end
@@ -68,7 +69,8 @@ class TestPuppetDefaults < Test::Unit::TestCase
value = Puppet[param]
unless value !~ notval
- assert_nothing_raised { raise "%s is in wrong dir" % value }
+ assert_nothing_raised { raise "%s is in wrong dir: %s" %
+ [param,value] }
end
}
end