+6
-5
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user