mirror of
https://github.com/OpenRouterTeam/spawn.git
synced 2026-05-19 08:01:17 +00:00
chore: rename fixture files from snake_case to kebab-case (#2167)
Renames create_server, delete_server, ssh_keys, and server_types fixture JSON files to kebab-case for consistency with codebase conventions. Updates _metadata.json keys and qa-fixtures-prompt naming convention accordingly. Co-authored-by: lab <6723574+louisgv@users.noreply.github.com> Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
61bcedc0eb
commit
8eb5f8476c
10 changed files with 10 additions and 10 deletions
|
|
@ -65,7 +65,7 @@ For any other cloud directories found, read their TypeScript module in `packages
|
|||
For each successful API response:
|
||||
1. Validate it is valid JSON: `echo "$response" | jq . > /dev/null 2>&1`
|
||||
2. Pretty-print and save: `echo "$response" | jq . > fixtures/{cloud}/{endpoint}.json`
|
||||
3. Name convention: `ssh_keys.json`, `server_types.json`, `regions.json`, `account.json`
|
||||
3. Name convention: kebab-case — `ssh-keys.json`, `server-types.json`, `regions.json`, `account.json`
|
||||
|
||||
## Step 5 — Update Metadata
|
||||
|
||||
|
|
@ -75,8 +75,8 @@ Create or update `fixtures/{cloud}/_metadata.json` for each cloud:
|
|||
{
|
||||
"recorded_at": "2024-01-15T12:00:00Z",
|
||||
"endpoints": {
|
||||
"ssh_keys": "https://api.provider.com/v1/ssh_keys",
|
||||
"server_types": "https://api.provider.com/v1/server_types"
|
||||
"ssh-keys": "https://api.provider.com/v1/ssh_keys",
|
||||
"server-types": "https://api.provider.com/v1/server_types"
|
||||
}
|
||||
}
|
||||
```
|
||||
|
|
|
|||
|
|
@ -3,11 +3,11 @@
|
|||
"recorded_at": "2026-02-11T03:07:38Z",
|
||||
"fixtures": {
|
||||
"account": {"endpoint": "/account", "recorded_at": "2026-02-11T03:07:30Z"},
|
||||
"ssh_keys": {"endpoint": "/account/keys", "recorded_at": "2026-02-11T03:07:30Z"},
|
||||
"ssh-keys": {"endpoint": "/account/keys", "recorded_at": "2026-02-11T03:07:30Z"},
|
||||
"droplets": {"endpoint": "/droplets", "recorded_at": "2026-02-11T03:07:31Z"},
|
||||
"sizes": {"endpoint": "/sizes", "recorded_at": "2026-02-11T03:07:31Z"},
|
||||
"regions": {"endpoint": "/regions", "recorded_at": "2026-02-11T03:07:32Z"},
|
||||
"create_server": {"endpoint": "POST /droplets", "type": "live", "recorded_at": "2026-02-11T03:07:34Z"},
|
||||
"delete_server": {"endpoint": "DELETE /droplets/{id}", "type": "live", "recorded_at": "2026-02-11T03:07:38Z"}
|
||||
"create-server": {"endpoint": "POST /droplets", "type": "live", "recorded_at": "2026-02-11T03:07:34Z"},
|
||||
"delete-server": {"endpoint": "DELETE /droplets/{id}", "type": "live", "recorded_at": "2026-02-11T03:07:38Z"}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2,12 +2,12 @@
|
|||
"cloud": "hetzner",
|
||||
"recorded_at": "2026-02-11T03:07:29Z",
|
||||
"fixtures": {
|
||||
"server_types": {"endpoint": "/server_types?per_page=50", "recorded_at": "2026-02-11T03:07:22Z"},
|
||||
"server-types": {"endpoint": "/server_types?per_page=50", "recorded_at": "2026-02-11T03:07:22Z"},
|
||||
"datacenters": {"endpoint": "/datacenters", "recorded_at": "2026-02-14T00:00:00Z"},
|
||||
"locations": {"endpoint": "/locations", "recorded_at": "2026-02-11T03:07:23Z"},
|
||||
"ssh_keys": {"endpoint": "/ssh_keys", "recorded_at": "2026-02-11T03:07:24Z"},
|
||||
"ssh-keys": {"endpoint": "/ssh_keys", "recorded_at": "2026-02-11T03:07:24Z"},
|
||||
"servers": {"endpoint": "/servers", "recorded_at": "2026-02-11T03:07:25Z"},
|
||||
"create_server": {"endpoint": "POST /servers", "type": "live", "recorded_at": "2026-02-11T03:07:26Z"},
|
||||
"delete_server": {"endpoint": "DELETE /servers/{id}", "type": "live", "recorded_at": "2026-02-11T03:07:29Z"}
|
||||
"create-server": {"endpoint": "POST /servers", "type": "live", "recorded_at": "2026-02-11T03:07:26Z"},
|
||||
"delete-server": {"endpoint": "DELETE /servers/{id}", "type": "live", "recorded_at": "2026-02-11T03:07:29Z"}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue