summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorLuke Kanies <luke@madstop.com>2005-07-10 04:48:43 +0000
committerLuke Kanies <luke@madstop.com>2005-07-10 04:48:43 +0000
commit4157fa01f499bdcdba19a0a6096f14cb1dc710ab (patch)
treeb584f1f31eaa1a3094493fc27b2bbe3f13aff80a /test
parent2c1f6373802c3d1431cce7e750764b286b62c41c (diff)
downloadpuppet-4157fa01f499bdcdba19a0a6096f14cb1dc710ab.tar.gz
puppet-4157fa01f499bdcdba19a0a6096f14cb1dc710ab.tar.xz
puppet-4157fa01f499bdcdba19a0a6096f14cb1dc710ab.zip
exec stuff all works now, end to end
git-svn-id: https://reductivelabs.com/svn/puppet/library/trunk@349 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'test')
-rwxr-xr-xtest/types/tc_exec.rb30
1 files changed, 30 insertions, 0 deletions
diff --git a/test/types/tc_exec.rb b/test/types/tc_exec.rb
index d188c4487..bc6b7dfaf 100755
--- a/test/types/tc_exec.rb
+++ b/test/types/tc_exec.rb
@@ -36,6 +36,36 @@ class TestExec < Test::Unit::TestCase
assert_equal([:executed_command],output)
end
+ def test_numvsstring
+ command = nil
+ output = nil
+ assert_nothing_raised {
+ command = Puppet::Type::Exec.new(
+ :command => "/bin/echo",
+ :returns => 0
+ )
+ }
+ assert_nothing_raised {
+ command.retrieve
+ }
+ assert_nothing_raised {
+ output = command.sync
+ }
+ Puppet::Type::Exec.clear
+ assert_nothing_raised {
+ command = Puppet::Type::Exec.new(
+ :command => "/bin/echo",
+ :returns => "0"
+ )
+ }
+ assert_nothing_raised {
+ command.retrieve
+ }
+ assert_nothing_raised {
+ output = command.sync
+ }
+ end
+
def test_path_or_qualified
command = nil
output = nil