Browse Source

Update exercise test

content-update
4 years ago committed by xpetit
parent
commit
31f5dd5fe1
  1. 7
      sh/tests/solutions/who-are-you.sh

7
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'

Loading…
Cancel
Save