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:
Zyy
2026-11-30 23:48:12 +08:00
co-authored by Codex
parent 6bf109e784
commit c9fb2ac465
@@ -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);
}