diff options
| author | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2006-02-16 00:47:10 +0000 |
|---|---|---|
| committer | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2006-02-16 00:47:10 +0000 |
| commit | 5f4335fbf010eb3d0522909f171078c9910d5e91 (patch) | |
| tree | af0d220803eed966dc0b1e7270fbc54130dbe8a9 /test | |
| parent | 89702d8bac6ddbf1a1dde50a7fbcc2143d5afa5e (diff) | |
Adding logoutput parameter to :exec
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@919 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'test')
| -rwxr-xr-x | test/types/exec.rb | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/test/types/exec.rb b/test/types/exec.rb index 68b5428d1..f097e1860 100755 --- a/test/types/exec.rb +++ b/test/types/exec.rb @@ -371,4 +371,32 @@ class TestExec < Test::Unit::TestCase } end end + + def test_logoutput + exec = nil + assert_nothing_raised { + exec = Puppet.type(:exec).create( + :name => "logoutputesting", + :path => "/usr/bin:/bin", + :command => "echo logoutput is false", + :logoutput => false + ) + } + + assert_apply(exec) + + assert_nothing_raised { + exec[:command] = "echo logoutput is true" + exec[:logoutput] = true + } + + assert_apply(exec) + + assert_nothing_raised { + exec[:command] = "echo logoutput is warning" + exec[:logoutput] = "warning" + } + + assert_apply(exec) + end end |
