Files
troubleshoot/scripts/host-preflight-integration-test.sh
John Murphy c119a16235 Fixed bugs introduced by handling multiple results in host preflights (#383)
Fixed bug caused by host preflights not handling empty when clauses, this cropped up because we now handle multiple host preflight results. Also expanded test coverage and added integration test script.
2021-07-08 11:08:53 -05:00

30 lines
561 B
Bash
Executable File

#!/bin/bash
function say() {
echo
echo "---------------------------------------------------------------"
echo $1
echo "---------------------------------------------------------------"
echo
}
if [ "$EUID" -ne 0 ]
then say "Use sudo to run this script"
exit
fi
for FILE in $(find ../examples/preflight/host/*.yaml)
do
if [ "${FILE}" = "../examples/preflight/host/tcp-load-balancer.yaml" ]
then say "Skipping ${FILE}"
continue
fi
say "Running Test ${FILE}"
../bin/preflight --interactive=false $FILE
done