Move any_errors_fatal test inventory into test.
This commit is contained in:
parent
828e8d4957
commit
c04b69208d
2 changed files with 6 additions and 3 deletions
3
test/integration/targets/any_errors_fatal/inventory
Normal file
3
test/integration/targets/any_errors_fatal/inventory
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
[local]
|
||||||
|
testhost ansible_connection=local host_var_role_name=role3
|
||||||
|
testhost2 ansible_connection=local host_var_role_name=role2
|
|
@ -1,14 +1,14 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
set -ux
|
set -ux
|
||||||
ansible-playbook -i ../../inventory -e @../../integration_config.yml "$@" play_level.yml| tee out.txt | grep 'any_errors_fatal_play_level_post_fail'
|
ansible-playbook -i inventory -e @../../integration_config.yml "$@" play_level.yml| tee out.txt | grep 'any_errors_fatal_play_level_post_fail'
|
||||||
res=$?
|
res=$?
|
||||||
cat out.txt
|
cat out.txt
|
||||||
if [ "${res}" -eq 0 ] ; then
|
if [ "${res}" -eq 0 ] ; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
ansible-playbook -i ../../inventory -e @../../integration_config.yml "$@" on_includes.yml | tee out.txt | grep 'any_errors_fatal_this_should_never_be_reached'
|
ansible-playbook -i inventory -e @../../integration_config.yml "$@" on_includes.yml | tee out.txt | grep 'any_errors_fatal_this_should_never_be_reached'
|
||||||
res=$?
|
res=$?
|
||||||
cat out.txt
|
cat out.txt
|
||||||
if [ "${res}" -eq 0 ] ; then
|
if [ "${res}" -eq 0 ] ; then
|
||||||
|
@ -17,7 +17,7 @@ fi
|
||||||
|
|
||||||
set -ux
|
set -ux
|
||||||
|
|
||||||
ansible-playbook -i ../../inventory -e @../../integration_config.yml "$@" always_block.yml | tee out.txt | grep 'any_errors_fatal_always_block_start'
|
ansible-playbook -i inventory -e @../../integration_config.yml "$@" always_block.yml | tee out.txt | grep 'any_errors_fatal_always_block_start'
|
||||||
res=$?
|
res=$?
|
||||||
cat out.txt
|
cat out.txt
|
||||||
exit $res
|
exit $res
|
||||||
|
|
Loading…
Reference in a new issue