diff options
author | varac <varacanero@zeromail.org> | 2015-12-20 01:57:04 +0100 |
---|---|---|
committer | varac <varacanero@zeromail.org> | 2015-12-20 22:46:54 +0100 |
commit | 005f06f3dde8198fac2ca1a0206e05157e927d3c (patch) | |
tree | 9fad0dff04b1a3de4c581b10f68e8e01bc8a324f /README | |
parent | 185ac30062d7aa11fc39a24aa89504e5ac0db6d9 (diff) |
[tests] Use beaker+docker for acceptance tests
Beaker together with docker is a very fast way to do
acceptance testing.
This commit adds basic beaker/docker support:
- Add a debian jessie nodeset
- Test if the module applies idempotentially, so it doesn't
change resources on a second run with the same parameters.
https://github.com/puppetlabs/beaker/blob/master/docs/Docker-Support.md
Diffstat (limited to 'README')
-rw-r--r-- | README | 24 |
1 files changed, 24 insertions, 0 deletions
@@ -576,11 +576,35 @@ To run pupept rspec tests: bundle install --path vendor/bundle bundle exec rake spec +Verbose Output: + + bundle exec rake spec SPEC_OPTS='--format documentation' + Using different facter/puppet versions: FACTER_GEM_VERSION=1.6.10 PUPPET_GEM_VERSION=2.7.23 bundle install --path vendor/bundle bundle exec rake spec +Acceptance Tests +---------------- + +At the moment, we use [beaker together with docker](https://github.com/puppetlabs/beaker/blob/master/docs/Docker-Support.md) +to do acceptance testing. +Be sure to have a recent docker version installed. + +List configured nodesets: + + bundle exec rake beaker_nodes + +Run tests on default node (Debian Jessie): + + bundle exec rake beaker + +Run different nodeset: + + BEAKER_set="debian-8-x86_64-docker" bundle exec rspec spec/acceptance/*_spec.rb + + Licensing ========= |