summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorluke <luke@980ebf18-57e1-0310-9a29-db15c13687c0>2006-09-05 23:46:32 +0000
committerluke <luke@980ebf18-57e1-0310-9a29-db15c13687c0>2006-09-05 23:46:32 +0000
commit2113eed0137630836b3de3e2a8bc17b6cb7198e8 (patch)
tree7c7af351497339aa4640fc6fe2debe5a7d8f5023 /test
parentfcc5bae22cb2a0286975cfc0bcab52a2a7f7973d (diff)
downloadpuppet-2113eed0137630836b3de3e2a8bc17b6cb7198e8.tar.gz
puppet-2113eed0137630836b3de3e2a8bc17b6cb7198e8.tar.xz
puppet-2113eed0137630836b3de3e2a8bc17b6cb7198e8.zip
Adding hasrestart parameter to services
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1569 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'test')
-rw-r--r--test/types/service.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/types/service.rb b/test/types/service.rb
index e1d2629a2..c6f530dc7 100644
--- a/test/types/service.rb
+++ b/test/types/service.rb
@@ -16,6 +16,7 @@ end
if $skipsvcs
puts "Skipping service testing on %s" % Facter["operatingsystem"].value
else
+ puts "wtf?"
#class TestInitService < Test::Unit::TestCase
class TestInitService
include TestPuppet
@@ -47,6 +48,7 @@ class TestInitService
hash[:path] = File.join($puppetbase,"examples/root/etc/init.d")
hash[:ensure] = true
hash[:hasstatus] = true
+ hash[:hasrestart] = true
#hash[:type] = "init"
assert_nothing_raised() {
return Puppet.type(:service).create(hash)
@@ -133,7 +135,7 @@ class TestLocalService < Test::Unit::TestCase
return {"smtp" => {}, "xfs" => {}}
end
when "debian":
- return {"hddtemp" => {}}
+ return {"hddtemp" => {:hasrestart => true}}
when "centos":
return {"cups" => {:hasstatus => true}}
when "redhat":