Dummy Web Services Test Suite
Overview
Toron includes a Dummy Web Services Test Suite inside dummy-services/. It allows launching 10 lightweight dummy web servers on ports 9001 through 9010 to test reverse proxy routing and load balancing algorithms.
Running the Dummy Services
From the root directory, run:
go run ./dummy-services -port 9001 -count 10
This launches 10 HTTP servers listening on http://localhost:9001 through http://localhost:9010.
Response Format
Each service returns JSON metadata:
{
"service": "dummy-service-1",
"port": 9001,
"path": "/api/users",
"method": "GET",
"headers": {
"User-Agent": ["ToronProxy/1.0"],
"X-Forwarded-Host": ["localhost:8080"]
}
}