diff --git a/sh/tests/solutions/who-are-you.sh b/sh/tests/solutions/who-are-you.sh index c6fba6f5..27681479 100755 --- a/sh/tests/solutions/who-are-you.sh +++ b/sh/tests/solutions/who-are-you.sh @@ -5,6 +5,9 @@ set -euo pipefail IFS=' ' -r=$(curl --compressed -sSm10 https://01.alem.school/assets/superhero/all.json) +f="" +# --insecure flag to make it work with dev environment (self-signed certificate) +test "$DOMAIN" = "localhost" && f="--insecure" -echo "$r" | jq '.[] | select(.id == 70) | .name' +curl $f --compressed --silent --show-error --max-time 10 https://$DOMAIN/assets/superhero/all.json | + jq '.[] | select(.id == 70) | .name'