mirror of
https://github.com/Wei-Shaw/sub2api.git
synced 2026-10-20 00:18:55 +00:00
test(server): 补齐 settings 契约用例的 Codex 版本号字段
新增的三个设置键会出现在 GET /api/v1/admin/settings 响应里, 契约用例的期望 JSON 需同步,否则 -tags=unit 下断言失败。
This commit is contained in:
@@ -926,6 +926,9 @@ func TestAPIContracts(t *testing.T) {
|
||||
"openai_advanced_scheduler_effective_weight_previous_response": "5",
|
||||
"openai_advanced_scheduler_effective_weight_session_sticky": "3",
|
||||
"openai_codex_user_agent": "",
|
||||
"openai_codex_client_version": "",
|
||||
"openai_codex_client_version_synced": "",
|
||||
"openai_codex_version_auto_sync_enabled": true,
|
||||
"openai_fast_policy_settings": {
|
||||
"rules": []
|
||||
},
|
||||
@@ -1216,6 +1219,9 @@ func TestAPIContracts(t *testing.T) {
|
||||
"openai_advanced_scheduler_effective_weight_previous_response": "5",
|
||||
"openai_advanced_scheduler_effective_weight_session_sticky": "3",
|
||||
"openai_codex_user_agent": "",
|
||||
"openai_codex_client_version": "",
|
||||
"openai_codex_client_version_synced": "",
|
||||
"openai_codex_version_auto_sync_enabled": true,
|
||||
"openai_fast_policy_settings": {
|
||||
"rules": []
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user