Sebastien Jodogne pushed to branch master at Debian Med / orthanc
Commits: 4ae57af5 by jodogne-guest at 2025-04-22T10:26:42+02:00 fix d/tests/run-test - - - - - cd210926 by jodogne-guest at 2025-04-22T10:32:20+02:00 typo - - - - - 6234846b by jodogne-guest at 2025-04-22T10:49:54+02:00 Upload to unstable - - - - - 2 changed files: - debian/changelog - debian/tests/run-test Changes: ===================================== debian/changelog ===================================== @@ -1,3 +1,10 @@ +orthanc (1.12.7+dfsg-2) unstable; urgency=medium + + * Fix "d/tests/run-test" that was not waiting for the orthanc + service to be in healthy state. Closes: #1103504 + + -- Sebastien Jodogne <[email protected]> Tue, 22 Apr 2025 10:22:53 +0200 + orthanc (1.12.7+dfsg-1) unstable; urgency=medium * New upstream version ===================================== debian/tests/run-test ===================================== @@ -34,6 +34,20 @@ else echo "Orthanc is not active." fi + +# Try for 15 times to find the system REST API of Orthanc up and running +URL=http://localhost:8042/system +tries=15 +while true +do + STATUSCODE=$(curl --silent --output /dev/null --write-out "%{http_code}" ${URL}) + test "$STATUSCODE" -eq 200 && echo "Orthanc initialized!" && break + tries=$(expr "$tries" - 1) + test "$tries" -le 0 && echo "Unable to initialize Orthanc" && exit 1 + sleep 1 +done + + URL="http://localhost:8042/app/explorer.html" status_code=$(curl -s -o /dev/null -w "%{http_code}" "$URL") @@ -46,9 +60,3 @@ else echo "Request failed with HTTP status code $status_code" exit 1 fi - - - - - - View it on GitLab: https://salsa.debian.org/med-team/orthanc/-/compare/41b2b223f2e360d2657183e7fb0fc90d0a392a26...6234846b59ca0c50415858e62a1b0cfa522ea449 -- View it on GitLab: https://salsa.debian.org/med-team/orthanc/-/compare/41b2b223f2e360d2657183e7fb0fc90d0a392a26...6234846b59ca0c50415858e62a1b0cfa522ea449 You're receiving this email because of your account on salsa.debian.org.
_______________________________________________ debian-med-commit mailing list [email protected] https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/debian-med-commit
