mirror of
https://github.com/replicatedhq/troubleshoot.git
synced 2026-04-15 07:16:34 +00:00
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.
30 lines
561 B
Bash
Executable File
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
|
|
|
|
|