diff options
author | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2007-03-08 17:35:18 +0000 |
---|---|---|
committer | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2007-03-08 17:35:18 +0000 |
commit | 6ad8998a7edb1027eca7913f2d7bfdf66f81cbf4 (patch) | |
tree | 7f222581ad8cd039424bfa15a28f724eb1571726 /test/util | |
parent | 3489bd85669dd06ad0ec06430556aaeb4ba14e5d (diff) | |
download | puppet-6ad8998a7edb1027eca7913f2d7bfdf66f81cbf4.tar.gz puppet-6ad8998a7edb1027eca7913f2d7bfdf66f81cbf4.tar.xz puppet-6ad8998a7edb1027eca7913f2d7bfdf66f81cbf4.zip |
Adding a bit more testing to the config stuff
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2273 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'test/util')
-rwxr-xr-x | test/util/config.rb | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/test/util/config.rb b/test/util/config.rb index 742b15b7b..924d73709 100755 --- a/test/util/config.rb +++ b/test/util/config.rb @@ -1037,7 +1037,7 @@ inttest = 27 :default => "/some/file"}) File.open(config, "w") { |f| f.puts "[#{Puppet[:name]}] - mode = 750 + mode = 755 group = foo ssldir = #{file} "} @@ -1055,7 +1055,16 @@ inttest = 27 # Now make them valid params @config.setdefaults(Puppet[:name], :group => ["blah", "yay"]) - @config.setdefaults(Puppet[:name], :mode => ["755", "yay"]) + @config.setdefaults(Puppet[:name], :mode => ["750", "yay"]) + + assert_nothing_raised do + @config.parse(config) + end + + assert_equal("foo", @config[:group], + "Did not store group when it is a valid config") + assert_equal("755", @config[:mode], + "Did not store mode when it is a valid config") end end |