diff options
Diffstat (limited to 'test/ral/providers/service/base.rb')
-rwxr-xr-x | test/ral/providers/service/base.rb | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/test/ral/providers/service/base.rb b/test/ral/providers/service/base.rb index e23e2fd11..015905180 100755 --- a/test/ral/providers/service/base.rb +++ b/test/ral/providers/service/base.rb @@ -22,10 +22,13 @@ class TestBaseServiceProvider < Test::Unit::TestCase end commands[c.to_sym] = path end - service = Puppet::Type.type(:service).new( + + service = Puppet::Type.type(:service).new( + :name => "yaytest", :provider => :base, :start => "%s %s" % [commands[:touch], running], :status => "%s -f %s" % [commands[:test], running], + :stop => "%s %s" % [commands[:rm], running] ) @@ -51,11 +54,14 @@ class TestBaseServiceProvider < Test::Unit::TestCase # Testing #454 def test_that_failures_propagate nope = "/no/such/command" - service = Puppet::Type.type(:service).new( + + service = Puppet::Type.type(:service).new( + :name => "yaytest", :provider => :base, :start => nope, :status => nope, :stop => nope, + :restart => nope ) |