Skip to content

Commit

Permalink
f
Browse files Browse the repository at this point in the history
  • Loading branch information
laverya committed Feb 1, 2025
1 parent 89c256f commit ad3a456
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion e2e/scripts/embedded-preflight.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ has_applied_host_preflight() {
}

main() {
echo "installing with failing preflights"
if /usr/local/bin/embedded-cluster-failing-preflights install --yes --license /assets/license.yaml 2>&1 | tee /tmp/log ; then
cat /tmp/log
echo "preflight_with_failure: Expected installation to fail"
Expand All @@ -31,11 +32,13 @@ main() {
mv /tmp/log /tmp/log-failure

# Warnings should not fail installations
if ! /usr/local/bin/embedded-cluster install run-preflights --yes 2>&1 | tee /tmp/log ; then
echo "running preflights with warning preflights"
if ! /usr/local/bin/embedded-cluster install run-preflights --yes --license /assets/license.yaml 2>&1 | tee /tmp/log ; then
cat /etc/os-release
echo "preflight_with_warning: Failed to run embedded-cluster preflights"
exit 1
fi
echo "installing with warning preflights"
if ! /usr/local/bin/embedded-cluster install --yes --license /assets/license.yaml 2>&1 | tee /tmp/log ; then
cat /etc/os-release
echo "preflight_with_warning: Failed to install embedded-cluster"
Expand Down

0 comments on commit ad3a456

Please sign in to comment.