Files
microdao-daarion/test-fastapi.sh
Ivan Tytar 3cacf67cf5 feat: Initial commit - DAGI Stack v0.2.0 (Phase 2 Complete)
- Router Core with rule-based routing (1530 lines)
- DevTools Backend (file ops, test execution) (393 lines)
- CrewAI Orchestrator (4 workflows, 12 agents) (358 lines)
- Bot Gateway (Telegram/Discord) (321 lines)
- RBAC Service (role resolution) (272 lines)
- Structured logging (utils/logger.py)
- Docker deployment (docker-compose.yml)
- Comprehensive documentation (57KB)
- Test suites (41 tests, 95% coverage)
- Phase 4 roadmap & ecosystem integration plans

Production-ready infrastructure for DAARION microDAOs.
2025-11-15 14:35:24 +01:00

45 lines
991 B
Bash
Executable File
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#!/bin/bash
# Test FastAPI DAGI Router
API_URL="http://127.0.0.1:9102"
echo "=== Testing DAGI Router FastAPI ==="
echo ""
echo "1. Health Check:"
curl -s $API_URL/health | python3 -m json.tool
echo -e "\n"
echo "2. Root Info:"
curl -s $API_URL/ | python3 -m json.tool
echo -e "\n"
echo "3. Providers List:"
curl -s $API_URL/providers | python3 -m json.tool
echo -e "\n"
echo "4. Routing Rules:"
curl -s $API_URL/routing | python3 -m json.tool
echo -e "\n"
echo "5. Simple DevTools Request:"
curl -s -X POST $API_URL/route \
-H "Content-Type: application/json" \
-d '{
"agent": "devtools",
"message": "Що таке memory leak?"
}' | python3 -m json.tool
echo -e "\n"
echo "6. Request with task_type:"
curl -s -X POST $API_URL/route \
-H "Content-Type: application/json" \
-d '{
"agent": "devtools",
"message": "Як виправити баг?",
"payload": {"task_type": "bugfix"}
}' | python3 -m json.tool
echo -e "\n"
echo "=== Tests Complete ==="