On Mon, 2008-08-25 at 07:52 +1000, James Turnbull wrote: > Brice Figureau wrote: > > This path adds a service provider to manage daemontools[1] > > services directly from puppet. > > > > The daemons directories should be placed in /var/lib/service > > (overridable with the service path parameter). > > When the service is enabled, the daemon directory is symlinked > > into the service directory which defaults to /service > > (or /etc/service on debian). The daemon is then started by svscan. > > Services are disabled by removing this symlink. > > Start and stop are almost directly mapped to enable/disable. > > This provider supports restart and status directly > > > > Brice > > For a new provider we really also need tests. > > See for RSpec: > > spec/unit/provider > > or for the older Unit tests: > > test/ral/providers/service/
OK, I had a look to those. I have some questions: * should I implement both tests (ie in ral and Rspec)? or Rspec is enough? * there is no service test in the Rspec part (except one in the integration directory), or did I missed something? I think I'll do something along the lines of spec/unit/provider/package/hpux.rb but adapted to my service (ie check that the commands issued are the good ones and that the object implements all the necessary methods) Will that be enough? Thanks, -- Brice Figureau <[EMAIL PROTECTED]> --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Puppet Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/puppet-dev?hl=en -~----------~----~----~----~------~----~------~--~---
