ef554d0378
Change: - Remove two deprecated features - We now error if a playbook is an empty list instead of just skipping - We now error if using 'include' instead of 'import_playbook' Test Plan: - Added new tests for new errors Tickets: - Fixes #74133 Signed-off-by: Rick Elrod <rick@elrod.me> * sanity & changelog Signed-off-by: Rick Elrod <rick@elrod.me>
15 lines
412 B
Bash
Executable file
15 lines
412 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
set -eux
|
|
|
|
# run type tests
|
|
ansible-playbook -i ../../inventory types.yml -v "$@"
|
|
|
|
# test timeout
|
|
ansible-playbook -i ../../inventory timeout.yml -v "$@"
|
|
|
|
echo "EXPECTED ERROR: Ensure we fail properly if a playbook is an empty list."
|
|
set +e
|
|
result="$(ansible-playbook -i ../../inventory empty.yml -v "$@" 2>&1)"
|
|
set -e
|
|
grep -q "ERROR! A playbook must contain at least one play" <<< "$result"
|