df92c96791
This commit does a fairly major refactor of how the spec tests are laid out. The main goal was to make it easier to run a subset of the tests--e.g., the ability to only run tests on a single OS via a simple rspec command. The test logic is now defined in some shared examples in the `support` directory. There are now spec folders for each distro, which contain some stubs to include the shared examples as well as a Vagrantfile for the particular distro. Also, the system-default postgres package tests now run successfully against the CentOS6 VM that is defined by the Vagrantfile. |
||
---|---|---|
.. | ||
distros | ||
manifests | ||
support | ||
base.pp | ||
README.md |
Warning: these spec tests are pretty resource intensive!
You will need the following in order to run them:
- Virtualbox
- vagrant
- 'sahara' gem
- A decent chunk of free disk space (~300MB per distro tested)
- Patience :)
If you just run:
rspec ./spec
then, for each distro that has a Vagrantfile in the spec/distros directory, vagrant will download a base image from the web, fire up a VM, and run the suite of tests against the VM.
If you only want to run the tests against an individual distro, you can instead do something like:
rspec ./spec/distros/ubuntu_lucid_64
For some options that might speed up the testing process a bit during development,
please see spec/support/test_config.rb
.