commit | author | age
|
791ee8
|
1 |
# Ansible Role tests |
JP |
2 |
|
|
3 |
To run the test playbook(s) in this directory: |
|
4 |
|
|
5 |
1. Install and start Docker. |
|
6 |
1. Download the test shim (see .travis.yml file for the URL) into `tests/test.sh`: |
|
7 |
- `wget -O tests/test.sh https://gist.githubusercontent.com/geerlingguy/73ef1e5ee45d8694570f334be385e181/raw/` |
|
8 |
1. Make the test shim executable: `chmod +x tests/test.sh`. |
|
9 |
1. Run (from the role root directory) `distro=[distro] playbook=[playbook] ./tests/test.sh` |
|
10 |
|
|
11 |
If you don't want the container to be automatically deleted after the test playbook is run, add the following environment variables: `cleanup=false container_id=$(date +%s)` |