fix(saas): Phase 5 regression fixes — SQL type casts + test data corrections
Some checks failed
CI / Lint & TypeCheck (push) Has been cancelled
CI / Unit Tests (push) Has been cancelled
CI / Build Frontend (push) Has been cancelled
CI / Rust Check (push) Has been cancelled
CI / Security Scan (push) Has been cancelled
CI / E2E Tests (push) Has been cancelled

- Fix usage_stats SQL: add ::timestamptz cast for Option<String> params
- Fix usage_stats SQL: add ::bigint cast for COALESCE(SUM(...))
- Fix telemetry INSERT: add ::timestamptz cast for reported_at column
- Fix config_analysis_empty test: seed data makes total_items > 0
- Fix key_pool_crud test: key_value must be >= 20 chars
- Fix SkillManifest test helpers: add missing tools field

All 1048 tests pass: 580 Rust + 138 SaaS + 330 Desktop Vitest
This commit is contained in:
iven
2026-04-07 19:21:45 +08:00
parent 6d2bedcfd7
commit ab0e11a719
7 changed files with 12 additions and 9 deletions

View File

@@ -88,7 +88,7 @@ async fn key_pool_crud() {
post(
&format!("/api/v1/providers/{provider_id}/keys"),
&admin,
serde_json::json!({ "key_label": "Pool Key 1", "key_value": "sk-pool-key-001", "priority": 0 }),
serde_json::json!({ "key_label": "Pool Key 1", "key_value": "sk-pool-key-001-abcdefg", "priority": 0 }),
),
).await;
assert_eq!(status, StatusCode::OK, "add key to pool: {body}");