-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdemo-test.sh
More file actions
40 lines (34 loc) · 1.03 KB
/
Copy pathdemo-test.sh
File metadata and controls
40 lines (34 loc) · 1.03 KB
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
38
39
40
#!/bin/bash
# Quick demo test for Zeal-Reflow integration
echo "🚀 Testing Zeal-Reflow Integration"
echo "=================================="
# Test direct reflow server
echo -e "\n1️⃣ Testing direct reflow server call..."
curl -X POST http://localhost:8080/api/execute-zeal \
-H "Content-Type: application/json" \
-d '{
"workflow": {
"id": "demo_001",
"name": "Demo Workflow",
"graphs": [{
"id": "main",
"name": "Main",
"nodes": [{
"id": "http_1",
"name": "HTTP Request",
"template_id": "tpl_http_request",
"configuration": {
"url": "https://jsonplaceholder.typicode.com/posts/1",
"method": "GET"
}
}],
"connections": []
}]
},
"input": {"demo": true}
}' | python3 -m json.tool
echo -e "\n✅ Reflow server test complete"
# Get execution status
echo -e "\n2️⃣ Checking workflow status..."
curl -s http://localhost:8080/api/status | python3 -m json.tool
echo -e "\n✨ Demo complete!"