mirror of
https://github.com/OpenRouterTeam/spawn.git
synced 2026-05-07 17:31:04 +00:00
Add comprehensive test coverage for the single-token credential management functions in shared/common.sh that previously had zero test coverage: - _load_token_from_env (env var detection, edge cases) - _load_token_from_config (JSON config loading, error handling) - _validate_token_with_provider (validation callback, env var cleanup) - _save_token_to_config (secure file creation, JSON escaping, roundtrips) - ensure_api_token_with_provider (full flow integration tests) These functions are used by every single-token cloud provider (Hetzner, DigitalOcean, Vultr, Lambda, Linode, etc.) and are security-critical for credential handling. Agent: test-engineer Co-authored-by: A <6723574+louisgv@users.noreply.github.com> Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| __tests__ | ||
| commands.ts | ||
| history.ts | ||
| index.ts | ||
| manifest.ts | ||
| security.ts | ||
| unicode-detect.ts | ||
| update-check.ts | ||