Update install_elog.sh
Run CI Tests / test (push) Successful in 1m29s

This commit is contained in:
2025-08-07 01:05:35 +02:00
parent 80a9cd381a
commit eeb9c89816
+6 -5
View File
@@ -53,11 +53,12 @@ curl http://localhost:8080/demo/ || echo "Pas encore de logbook 'demo'"
# Test d'insertion d'une entrée (PUT)
echo "📝 Test elog.put (via curl)..."
response=$(curl -s -o /dev/null -w "%{http_code}" -u robot:testpassword \
-d "text=Hello ELOG via shell script" \
-d "Subject=Test entry" \
-d "Type=Note" \
-d "Category=General" \
"http://localhost:8080/demo/?cmd=New")
-F "Author=robot" \
-F "Subject=Test via script" \
-F "Category=General" \
-F "Type=Note" \
-F "Text=Message envoyé automatiquement depuis le script install_elog.sh" \
"http://localhost:8080/demo/?cmd=Submit")
if [ "$response" == "200" ]; then
echo "✅ Insertion réussie dans le logbook demo"