Add Hurl tutorial regression tests.

This commit is contained in:
Jean-Christophe Amiel 2025-10-25 22:35:06 +02:00
parent 4c080fc340
commit 3d91fb70cd
No known key found for this signature in database
GPG Key ID: 07FF11CFD55356CC
1 changed files with 26 additions and 0 deletions

26
bin/release/test_hurl_tuto.sh Executable file
View File

@ -0,0 +1,26 @@
#!/bin/bash
set -Eeuo pipefail
echo "Test Hurl tutorial <https://github.com/jcamiel/hurl-express-tutorial>"
echo "---------------------------------------------------------------------"
work_dir=build/
mkdir -p build/
cd "$work_dir".
rm -rf hurl-express-tutorial || true
git clone --no-depth https://github.com/jcamiel/hurl-express-tutorial
cd hurl-express-tutorial
docker stop movies || true
docker run --rm --detach --quiet \
--name movies \
--publish 3000:3000 \
ghcr.io/jcamiel/hurl-express-tutorial:latest
echo -e "GET http://localhost:3000\n200" | hurl --retry 60 --retry-interval 1s > /dev/null
hurl --variable host="http://localhost:3000" --test --color integration/*.hurl
docker stop movies