puppetlabs/puppetlabs-apache — pull request #207 by apenney (2013-05-25 21:03:37+00:00)
Title: Initial draft of rspec-system testing

This is a very early draft of getting some rspec-system tests up and running. Right now it tests that the package installed successfully on Debian/Redhat and that the service is running.

I wanted to make a pull early because I wanted to start a discussion about what other tests make sense here for post-catalog testing. The major areas I want to see tested are:

* Connecting to apache and getting some content.
* Possibly testing that various modules like php actually work for real.
* Ensuring that running each of the defines cleanly runs on the target OS.

I figure testing the contents of the templates and so forth doesn't really help or add much to the testing over the existing spec tests.

What would the readers of this PR see as the most benefical post run system level testing targets?

TODO:

* Right now I'm manually calling puppet module in the spec_helper_system.rb to get it to install the dependencies. I need to talk to Ken to see if he has a better solution or work in the planning for handling this. A helper to rspec-system-puppet that parses Modulefile is one possibility.