Skip to content

Commit

Permalink
Update create-link-ci.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
thebalaa authored May 16, 2024
1 parent ba861f8 commit b56a78a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ci/create-link-ci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,13 @@ if [ "$normal_test_proceed" = true ]; then
# assert http response code was 200
# asserts basic auth is working with user: admin, password: admin

if ! docker compose exec gateway curl -k -H "Authorization: Basic YWRtaW46YWRtaW4=" --resolve $FQDN:80:127.0.0.1 http://app.example.com -I |grep "HTTP/1.1 308"; then
if ! docker compose exec gateway curl -k -H "Authorization: Basic YWRtaW46YWRtaW4=" --resolve $FQDN:80:127.0.0.1 http://$FQDN -I |grep "HTTP/1.1 308"; then
FAILED="true"
echo -e "\033[0;31m Default Link curl FAILED\033[0m" # red for failure
else
echo -e "\033[0;32m Default Link curl SUCCESS\033[0m" # green for success
fi
if ! docker compose exec gateway curl -k -H "Authorization: Basic YWRtaW46YWRtaW4=" --resolve $FQDN:443:127.0.0.1 https://app.example.com -I |grep "HTTP/2 200"; then
if ! docker compose exec gateway curl -k -H "Authorization: Basic YWRtaW46YWRtaW4=" --resolve $FQDN:443:127.0.0.1 https://$FQDN -I |grep "HTTP/2 200"; then
FAILED="true"
echo -e "\033[0;31m Default Link curl FAILED\033[0m" # red for failure
else
Expand Down Expand Up @@ -107,7 +107,7 @@ if [ "$caddy_greenlight" = true ]; then
# assert http response code was 200
# asserts basic auth is working with user: admin, password: admin

if ! docker compose exec gateway curl -v -k -H "Authorization: Basic YWRtaW46YWRtaW4=" --resolve $FQDN:443:127.0.0.1 https://app.example.com -I 2>&1 |grep "HTTP/2 200"; then
if ! docker compose exec gateway curl -v -k -H "Authorization: Basic YWRtaW46YWRtaW4=" --resolve $FQDN:443:127.0.0.1 https://$FQDN -I 2>&1 |grep "HTTP/2 200"; then
FAILED="true"
echo -e "\033[0;31m Caddy TLS Link curl FAILED\033[0m" # red for failure
else
Expand Down

0 comments on commit b56a78a

Please sign in to comment.