mirror of
https://github.com/OpenRouterTeam/spawn.git
synced 2026-05-08 18:39:50 +00:00
Fly.io had zero test coverage — every bug fixed this session (stale tokens, FlyV1 auth, name-taken failures, SSH hangs, PATH issues) went undetected. This adds the full mock test infrastructure: - test/fixtures/fly/ — env vars, API assertions, fixture JSONs for app creation, machine creation, and token validation endpoints - test/mock-curl-script.sh — URL stripping for api.machines.dev, body validation for machine creation, synthetic status responses, app creation POST handler, state tracking - test/mock.sh — mock fly/flyctl CLI binary (ssh console, auth token), URL stripping, required field validation, base64 mock - test/record.sh — Fly.io REST endpoints now recordable, live create+delete cycle, error detection, auth var mapping All 15 agent scripts (aider, claude, openclaw, etc.) are automatically discovered and tested: 75 passed, 0 failed. Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
16 lines
298 B
JSON
16 lines
298 B
JSON
{
|
|
"config": {
|
|
"guest": {
|
|
"cpu_kind": "shared",
|
|
"cpus": 1,
|
|
"memory_mb": 1024
|
|
},
|
|
"image": "ubuntu:24.04"
|
|
},
|
|
"id": "d890e84b0d3089",
|
|
"instance_id": "01JTEST",
|
|
"name": "test-app",
|
|
"private_ip": "fdaa:0:0:0:a7b:0:0:2",
|
|
"region": "iad",
|
|
"state": "created"
|
|
}
|