nickjj / rolespec

A test library for testing Ansible roles
GNU General Public License v3.0
232 stars 20 forks source link

Added support for RHEL/CentOS systems #23

Closed leucos closed 9 years ago

leucos commented 9 years ago

Changes tests so they work on centos too (and arch linux locally).

Added Vagrant file so tests can be run under Vagrant+CentOS or Vagrant+debian for folks testing from other distributions. This also provides isolation and possible interactions with local ansible setup.

lib/config is now splitted in two files so the proper file is used depending on the distribution to test on.

ROLESPEC_DISTRIBUTION_NAME is now set by bin/rolespec and can be reused in other rolespec files.

Two new targets have been added to Makefile so tests under vagrant can now be triggered by make test-jessie or make test-centos.

test-cli loads the appropriate helper file depending on the distribution (debian, centos, arch) and then executes the test suite in tests/test-suite file. The latter should be as distribution agnostic as possible.

Test setup and tear down should occur in setup_test and teardown_test located in distribution dependent files (e.g. test-helper-<distribution>).

Added new items to .gitignore