Merge "Adding idempotency testing to the role func test"
This commit is contained in:
commit
1ac1625868
9
tox.ini
9
tox.ini
|
@ -168,7 +168,14 @@ commands =
|
|||
-e "rolename={toxinidir}" \
|
||||
-e "install_test_packages=True" \
|
||||
{toxinidir}/tests/test.yml -vvvv
|
||||
|
||||
# Idempotency test
|
||||
bash -c 'ansible-playbook -i {toxinidir}/tests/inventory \
|
||||
-e "rolename={toxinidir}" \
|
||||
-e "install_test_packages=True" \
|
||||
{toxinidir}/tests/test.yml \
|
||||
| grep -q "changed=0.*failed=0" \
|
||||
&& (echo "Idempotence test: pass" && exit 0) \
|
||||
|| (echo "Idempotence test: fail" && exit 1)'
|
||||
|
||||
[testenv:linters]
|
||||
deps =
|
||||
|
|
Loading…
Reference in New Issue