mirror of
https://github.com/zyycn/codex-proxy-rs.git
synced 2026-12-03 00:00:58 +00:00
test(openai): align request fixtures with empty defaults
Use the empty country default in content preservation assertions and configure residency explicitly in routing header coverage. Co-authored-by: Codex <noreply@openai.com>
This commit is contained in:
@@ -6342,6 +6342,7 @@ async fn runtime_routing_headers_override_request_identity_and_clear_when_unset(
|
||||
{
|
||||
let settings = if index == 0 {
|
||||
gateway_core::settings::OpenAiRequestSettings {
|
||||
residency: Some("us".to_owned()),
|
||||
account_routing_override: Some("us_cr".to_owned()),
|
||||
..Default::default()
|
||||
}
|
||||
@@ -13770,10 +13771,7 @@ async fn downstream_client_markers_preserve_instruction_content() {
|
||||
let sent = capture_client_request(body.clone(), context, api_key).await;
|
||||
let mut expected = body;
|
||||
if !api_key {
|
||||
expected.insert(
|
||||
"request_country".to_owned(),
|
||||
json!(global_request_location().country),
|
||||
);
|
||||
expected.insert("request_country".to_owned(), Value::Null);
|
||||
}
|
||||
assert_eq!(sent, expected);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user