mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-22 12:50:22 -07:00
intg tests for 'any_errors_fatal' (#25813)
* start adding intg tests for any_errors_fatal * updates * show captured output flip conditional for on_includes * cleanup/ci poke * fix typos * Add 'EXPECTED FAILURE' to tasks names for expected failures
This commit is contained in:
parent
923174a856
commit
b20ba105c2
7 changed files with 107 additions and 0 deletions
23
test/integration/targets/any_errors_fatal/runme.sh
Executable file
23
test/integration/targets/any_errors_fatal/runme.sh
Executable file
|
@ -0,0 +1,23 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
set -ux
|
||||
ansible-playbook -i ../../inventory -e @../../integration_config.yml "$@" play_level.yml| tee out.txt | grep 'any_errors_fatal_play_level_post_fail'
|
||||
res=$?
|
||||
cat out.txt
|
||||
if [ "${res}" -eq 0 ] ; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
ansible-playbook -i ../../inventory -e @../../integration_config.yml "$@" on_includes.yml | tee out.txt | grep 'any_errors_fatal_this_should_never_be_reached'
|
||||
res=$?
|
||||
cat out.txt
|
||||
if [ "${res}" -eq 0 ] ; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
set -ux
|
||||
|
||||
ansible-playbook -i ../../inventory -e @../../integration_config.yml "$@" always_block.yml | tee out.txt | grep 'any_errors_fatal_always_block_start'
|
||||
res=$?
|
||||
cat out.txt
|
||||
exit $res
|
Loading…
Add table
Add a link
Reference in a new issue