salt-bootstrap/tests
2018-08-14 09:40:21 -05:00
..
bootstrap Remove daily install option on Ubuntu system. 2018-06-22 10:19:41 +07:00
ext Switched the bootstrap script unit testing to python. Refs #38. 2013-02-04 01:05:37 +00:00
accept_key.sls add kitchen tests 2018-08-14 09:26:59 -05:00
install-testsuite-deps.py Merge branch 'develop' of github.com:saltstack/salt-bootstrap into issues/57 2013-03-04 12:11:10 +00:00
README.rst Updated sample run line to have sudo. 2013-03-10 14:56:52 -07:00
requirements.txt add depedencies to test/requirements.txt 2018-08-14 09:40:21 -05:00
runtests.ps1 Add tests for ps1 2016-06-28 13:10:37 +02:00
runtests.py Update the runtests parser to set the stable version in the environ 2014-10-04 11:18:56 +01:00

Salt Bootstrap Script - Integration Testing

Testing salt-bootstrap requires both Python and Perl.

Yes, it's weird that a shell script uses either one of the above languages for testing itself, the explanation though, is simple.

Perl is required because we use a script, checkbashisms, which does exactly what it's name says. In our case, it tries it's best to find non POSIX compliant code in our bootstrap script since we require the script to be able to properly execute in any POSIX compliant shell.

Python is used in the integration tests. It greatly simplifies running these tests and can even provide some JUnit compliant XML used to generate reports of those tests. Doing this job in shell scripting would be too cumbersome and too complicated.

Running the tests suite

Warning

The test suite is destructive. It will install/un-install packages on your system. You must run the suite using sudo or most / all of the tests will be skipped.

Running the tests suite is as simple as:

sudo python tests/runtests.py

For additional information on the available options:

python tests/runtests.py --help