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

@@ -844,7 +844,7 @@ async fn conversation_webrtc_frameless_chatgpt_sends_codex_headers_to_backend(
let backend_base_url = format!("{}/backend-api/codex", server.uri());
let realtime_ws_base_url = realtime_server.uri().to_string();
let mut builder = test_codex()
.with_auth(CodexAuth::create_dummy_chatgpt_auth_for_testing())
.with_catalog_discovery_api_key()
.with_config(move |config| {
config.model_provider.base_url = Some(backend_base_url);
config.experimental_realtime_ws_backend_prompt = Some("backend prompt".to_string());
@@ -2221,7 +2221,7 @@ async fn conversation_start_uses_openai_env_key_fallback_with_chatgpt_auth() ->
.await;
let mut builder = test_codex()
.with_auth(CodexAuth::create_dummy_chatgpt_auth_for_testing())
.with_catalog_discovery_api_key()
.with_config({
let realtime_base_url = server.uri().to_string();
move |config| {
@@ -2472,7 +2472,7 @@ async fn conversation_start_preflight_failure_emits_realtime_error_only() -> Res
let server = start_websocket_server(vec![]).await;
let realtime_base_url = server.uri().to_string();
let mut builder = test_codex()
.with_auth(CodexAuth::create_dummy_chatgpt_auth_for_testing())
.with_catalog_discovery_api_key()
.with_config(move |config| {
config.experimental_realtime_ws_base_url = Some(realtime_base_url);
});