Commit Graph

4 Commits

Author SHA1 Message Date
Gary Larizza 580e831fbb Commit spec tests for the haproxy module
Previously, the haproxy module didn't provide rspec tests for the class
or defined resource types.  This commit adds the tests, a spec_helper
file, and a rakefile so you can do `rake spec` and automatically run the
tests.

I've also committed a symlink in the
spec/fixtures/modules/haproxy directory so the rspec-puppet tests will
FIND the haproxy class/defined resource types, but I HAVE NOT committed
a symlink so that it will find the concat class (which is a dependency
for this module).  If you choose to run the tests, you must symlink the
concat module in the spec/fixtures/modules directory before the spec
tests will pass.
2012-05-09 16:38:43 -07:00
Gary Larizza 01d46be262 Use array in config class default
Previously, I was using the option parameter twice in the default
setting for haproxy::config.  This commit changes that to passing an
array to the option parameter (and fixes the example).
2012-05-09 16:36:40 -07:00
Gary Larizza 98aaa48b67 Ensure hasrestart parameter with haproxy service
The haproxy service should have the hasrestart parameter defaulted to
true.  Previously, this was not the case.  This commit establishes that.
2012-05-09 16:35:51 -07:00
Gary Larizza c4799e59b9 Initial Commit 2012-05-07 14:26:21 -07:00