WIP fase 2b-2: rimosso login ChatGPT/OAuth/device code, agent/workload identity, backend-client; resta solo chiave API (test non tutti verdi)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
andrea.difonzo
2026-11-10 06:00:44 +01:00
parent 82347a58ed
commit 231e8cd136
661 changed files with 4924 additions and 64817 deletions

View File

@@ -513,7 +513,7 @@ async fn agent_metadata_is_only_sent_to_the_selected_plugin(
let user_override = matches!(case, AgentMetadataCase::UserOverride);
let fixture = test_codex()
.with_home(home)
.with_auth(CodexAuth::create_dummy_chatgpt_auth_for_testing())
.with_auth(CodexAuth::from_api_key("Test API Key"))
.with_config(move |config| {
if user_override {
insert_mcp_server(config, "sample", transport, TestMcpServerOptions::default());
@@ -1741,7 +1741,7 @@ async fn apps_enabled_turn_skips_pending_optional_mcp_without_cached_tools() ->
let pending_mcp_url = format!("http://{}/mcp", pending_mcp_listener.local_addr()?);
let fixture = test_codex()
.with_auth(CodexAuth::create_dummy_chatgpt_auth_for_testing())
.with_auth(CodexAuth::from_api_key("Test API Key"))
.with_config(move |config| {
config
.features
@@ -1925,7 +1925,7 @@ async fn startup_prewarm_connects_before_delayed_mcp_tools_then_reuses_socket(
let service_tier = ServiceTier::Fast.request_value();
let fixture = test_codex()
.with_model("gpt-5.4")
.with_auth(CodexAuth::create_dummy_chatgpt_auth_for_testing())
.with_auth(CodexAuth::from_api_key("Test API Key"))
.with_model_info_override("gpt-5.4", move |model| {
model.supports_search_tool = false;
model.use_responses_lite = use_responses_lite;
@@ -2630,7 +2630,7 @@ async fn stdio_mcp_tool_call_includes_sandbox_state_meta(
let rmcp_test_server_bin = remote_aware_stdio_server_bin()?;
let fixture = test_codex()
.with_auth(CodexAuth::create_dummy_chatgpt_auth_for_testing())
.with_auth(CodexAuth::from_api_key("Test API Key"))
.with_model("gpt-5.5")
.with_config(move |config| {
config.prefer_mxc = prefer_mxc;
@@ -3729,7 +3729,7 @@ async fn stdio_image_responses_are_sanitized_for_text_only_model() -> anyhow::Re
let rmcp_test_server_bin = remote_aware_stdio_server_bin()?;
let fixture = test_codex()
.with_auth(CodexAuth::create_dummy_chatgpt_auth_for_testing())
.with_auth(CodexAuth::from_api_key("Test API Key"))
.with_config(move |config| {
insert_mcp_server(
config,
@@ -4418,7 +4418,7 @@ async fn streamable_http_configured_auth_precedes_chatgpt_auth() -> anyhow::Resu
let configured_auth_url = configured_auth_server.url().to_string();
let configured_auth_fixture = test_codex()
.with_auth(CodexAuth::create_dummy_chatgpt_auth_for_testing())
.with_auth(CodexAuth::from_api_key("Test API Key"))
.with_config(move |config| {
insert_mcp_server(
config,
@@ -4461,7 +4461,7 @@ async fn streamable_http_chatgpt_auth_is_not_sent_to_configured_origin() -> anyh
let untrusted_chatgpt_base_url = untrusted_apps.chatgpt_base_url;
let fixture = test_codex()
.with_auth(CodexAuth::create_dummy_chatgpt_auth_for_testing())
.with_auth(CodexAuth::from_api_key("Test API Key"))
.with_config(move |config| {
config.chatgpt_base_url = untrusted_chatgpt_base_url;
insert_mcp_server(
@@ -4525,7 +4525,7 @@ async fn configured_chatgpt_base_url_does_not_grant_mcp_chatgpt_auth() -> anyhow
let untrusted_chatgpt_base_url = untrusted_apps.chatgpt_base_url;
let fixture = test_codex()
.with_auth(CodexAuth::create_dummy_chatgpt_auth_for_testing())
.with_auth(CodexAuth::from_api_key("Test API Key"))
.with_pre_build_hook(move |codex_home| {
fs::write(
codex_home.join("config.toml"),