test(server): 补齐 settings 契约用例的 Codex 版本号字段

新增的三个设置键会出现在 GET /api/v1/admin/settings 响应里,
契约用例的期望 JSON 需同步,否则 -tags=unit 下断言失败。
This commit is contained in:
zhiyu
2026-08-03 20:26:50 +08:00
parent 2eb24814fe
commit 1e08c4c56f
@@ -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": []
},