Skip to content

Commit

Permalink
fix(smoketest): follow redirects
Browse files Browse the repository at this point in the history
  • Loading branch information
enigbe committed Sep 14, 2022
1 parent c3c34b7 commit 9fea492
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion ci/tasks/admin-panel-smoketest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ port=`setting "admin_panel_port"`
set +e
for i in {1..15}; do
echo "Attempt ${i} to curl admin panel"
curl ${host}:${port}
curl --location ${host}:${port}
if [[ $? == 0 ]]; then success="true"; break; fi;
sleep 1
done
Expand Down
2 changes: 1 addition & 1 deletion ci/tasks/dealer-smoketest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ port=`setting "dealer_port"`
set +e
for i in {1..30}; do
echo "Attempt ${i} to curl dealer's /metrics endpoint"
curl ${host}:${port}/metrics
curl --location ${host}:${port}/metrics
if [[ $? == 0 ]]; then success="true"; break; fi;
sleep 5
done
Expand Down
2 changes: 1 addition & 1 deletion ci/tasks/galoy-auth-smoketest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ port=`setting "galoy_auth_port"`
set +e
for i in {1..15}; do
echo "Attempt ${i} to curl galoy-auth"
curl ${host}:${port}
curl --location ${host}:${port}
if [[ $? == 0 ]]; then success="true"; break; fi;
sleep 1
done
Expand Down
2 changes: 1 addition & 1 deletion ci/tasks/galoy-pay-smoketest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ port=`setting "galoy_pay_port"`
set +e
for i in {1..15}; do
echo "Attempt ${i} to curl galoy pay"
curl ${host}:${port}
curl --location ${host}:${port}
if [[ $? == 0 ]]; then success="true"; break; fi;
sleep 1
done
Expand Down
2 changes: 1 addition & 1 deletion ci/tasks/monitoring-smoketest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ source smoketest-settings/helpers.sh

grafana_host=`setting "grafana_host"`

curl ${grafana_host}
curl --location ${grafana_host}
2 changes: 1 addition & 1 deletion ci/tasks/specter-smoketest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ port=`setting "specter_port"`
set +e
for i in {1..15}; do
echo "Attempt ${i} to curl specter"
curl ${host}:${port} | grep direct # Check if we are being redirected
curl --location ${host}:${port} | grep direct # Check if we are being redirected
if [[ $? == 0 ]]; then success="true"; break; fi;
sleep 1
done
Expand Down
4 changes: 2 additions & 2 deletions ci/tasks/web-wallet-smoketest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ port=`setting "web_wallet_port"`
set +e
for i in {1..15}; do
echo "Attempt ${i} to curl web wallet"
curl ${host}:${port}
curl --location ${host}:${port}
status=$?
curl ${web_wallet_mobile_host}:${port}
curl --location ${web_wallet_mobile_host}:${port}
if [[ $status == 0 ]] && [[ $? == 0 ]]; then success="true"; break; fi;
sleep 1
done
Expand Down

0 comments on commit 9fea492

Please sign in to comment.