-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.sh
More file actions
executable file
·37 lines (32 loc) · 972 Bytes
/
test.sh
File metadata and controls
executable file
·37 lines (32 loc) · 972 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#!/bin/bash
echo "=========================================="
echo "Testing Ollama Data Extractor"
echo "=========================================="
echo ""
# Check if server is running
echo "Checking if server is running on http://localhost:5000..."
if ! curl -s http://localhost:5000/health > /dev/null; then
echo "❌ Server is not running"
echo "Start it with: python src/app.py"
exit 1
else
echo "✅ Server is running"
fi
# Test health endpoint
echo ""
echo "Testing /health endpoint..."
HEALTH_RESPONSE=$(curl -s http://localhost:5000/health)
echo "Response: $HEALTH_RESPONSE"
if echo "$HEALTH_RESPONSE" | grep -q "ok"; then
echo "✅ Health check passed"
else
echo "❌ Health check failed"
exit 1
fi
echo ""
echo "=========================================="
echo "✅ Basic tests passed!"
echo "=========================================="
echo ""
echo "Open http://localhost:5000 in your browser to use the web interface"
echo ""