
All checks were successful
build-and-push-ext / build_push (push) Successful in 1m28s
- Complété l'analyse détaillée du repo dans docs/ANALYSE.md - Ajouté guide de validation opérationnelle dans docs/VALIDATION.md - Créé tests basiques: health_check.sh et ws_connect.rs - Endpoint /health confirmé sur port 8091 - WebSocket confirmé sur port 8090 via tokio_tungstenite - Documentation CI/CD et configuration Docker
24 lines
497 B
Bash
24 lines
497 B
Bash
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
URL="http://localhost:8091/health"
|
|
echo "[tests] Vérification /health: $URL"
|
|
|
|
http_code=$(curl -s -o /tmp/health_body.txt -w "%{http_code}" "$URL")
|
|
body=$(cat /tmp/health_body.txt)
|
|
|
|
echo "HTTP $http_code"
|
|
echo "Body: $body"
|
|
|
|
if [[ "$http_code" != "200" ]]; then
|
|
echo "Échec: code HTTP inattendu" >&2
|
|
exit 1
|
|
fi
|
|
|
|
if [[ "$body" != '{"status":"ok"}' ]]; then
|
|
echo "Échec: corps inattendu" >&2
|
|
exit 1
|
|
fi
|
|
|
|
echo "Succès: endpoint /health opérationnel"
|