tests(connectivity), docs(index): ajout test HTTP basique + index

This commit is contained in:
Nicolas Cantu 2025-09-10 16:08:45 +02:00
parent 5399504204
commit 82c91f5487
7 changed files with 52 additions and 8 deletions

View File

@ -60,4 +60,3 @@
- sdk_relay: 8090/8091
- sdk_signer: 9090
- ihm_client: 8080/3003

View File

@ -5,12 +5,16 @@
- Architecture: `docs/ARCHITECTURE.md`
- Usage: `docs/USAGE.md`
- Réseau et cartographie: `docs/NETWORK.md`
- Déploiement: `docs/DEPLOYMENT.md`
### Monitoring et logs
- Stack monitoring (Loki/Promtail/Grafana): `log-monitoring.yml`
- Provisioning Grafana: `log/grafana-datasources.yml`, `log/grafana-dashboards.yml`
- Collecte Promtail: `log/promtail-config.yml`
### Tests
- Connectivité HTTP basique: `tests/connectivity/check_http_endpoints.sh`
### Reverse proxy
- Nginx conf: `conf/nginx/nginx.conf`
- Virtual host: `conf/nginx/sites-enabled/4nk_node.conf`

View File

@ -1 +1 @@
MANIFEST-000047
MANIFEST-000093

View File

@ -1,3 +1,3 @@
2025/09/10-13:56:22.250730 7fdd3ec7cb38 Recovering log #46
2025/09/10-13:56:22.264271 7fdd3ec7cb38 Delete type=0 #46
2025/09/10-13:56:22.264303 7fdd3ec7cb38 Delete type=3 #45
2025/09/10-14:08:17.295322 7f1f74e7cb38 Recovering log #92
2025/09/10-14:08:17.312865 7f1f74e7cb38 Delete type=3 #91
2025/09/10-14:08:17.312899 7f1f74e7cb38 Delete type=0 #92

View File

@ -1,3 +1,3 @@
2025/09/10-13:55:50.937547 7f0fa344fb38 Recovering log #44
2025/09/10-13:55:50.953834 7f0fa344fb38 Delete type=0 #44
2025/09/10-13:55:50.953909 7f0fa344fb38 Delete type=3 #43
2025/09/10-14:07:46.179318 7f7ff9accb38 Recovering log #90
2025/09/10-14:07:46.197168 7f7ff9accb38 Delete type=0 #90
2025/09/10-14:07:46.197243 7f7ff9accb38 Delete type=3 #89

View File

@ -0,0 +1,41 @@
#!/usr/bin/env bash
set -euo pipefail
endpoints=(
"http://127.0.0.1:8000" # blindbit
"http://127.0.0.1:8081" # sdk_storage
"http://127.0.0.1:8090" # relay1
"http://127.0.0.1:8092" # relay2
"http://127.0.0.1:8094" # relay3
"http://127.0.0.1:9090" # sdk_signer
"http://127.0.0.1:8080" # ihm_client
)
fail=0
for url in "${endpoints[@]}"; do
if wget --quiet --tries=1 --timeout=5 --spider "$url"; then
echo "OK $url"
else
echo "NOK $url"
fail=1
fi
done
exit $fail
set -euo pipefail
endpoints=(
http://127.0.0.1:8000 # blindbit
http://127.0.0.1:8081 # sdk_storage
http://127.0.0.1:8090 # relay1
http://127.0.0.1:8092 # relay2
http://127.0.0.1:8094 # relay3
http://127.0.0.1:9090 # sdk_signer
http://127.0.0.1:8080 # ihm_client
)
fail=0
for url in ; do
if wget --quiet --tries=1 --timeout=5 --spider ; then
echo OK