Eliminato chatgpt_base_url (B)

Da 24a3cfe2: via la chiave chatgpt_base_url e l'URL predefinito https://chatgpt.com/backend-api/
(la chiave resta accettata nei config e ignorata); schemi dell'app-server rigenerati.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
andrea.difonzo
2026-11-17 12:39:59 +01:00
parent 7effb5ec86
commit 499ee3a939
63 changed files with 160 additions and 532 deletions

View File

@@ -25,7 +25,7 @@ async fn read_requirements(server: &mut TestAppServer) -> Result<Value> {
}
#[tokio::test(flavor = "multi_thread", worker_threads = 2)]
async fn application_network_defaults_and_null_base_url_are_exposed() -> Result<()> {
async fn application_network_defaults_are_exposed() -> Result<()> {
for (contents, application) in [
("", Value::Null),
("[application]", json!({"network": null, "storage": null})),
@@ -48,13 +48,7 @@ async fn application_network_defaults_and_null_base_url_are_exposed() -> Result<
let requirements = wire["requirements"]
.as_object()
.expect("requirements object");
assert_eq!(
(
requirements.get("application"),
requirements.get("chatgptBaseUrl")
),
(Some(&application), Some(&Value::Null)),
);
assert_eq!(requirements.get("application"), Some(&application));
}
let home = TempDir::new()?;
let mut server = start_server(&home).await?;
@@ -77,7 +71,6 @@ async fn application_destinations_stay_separate_from_agent_network() -> Result<(
home.path().join("requirements.toml"),
format!(
r#"
chatgpt_base_url = "https://managed.example.com/backend-api/"
[{table}.domains]
"github.com" = "allow"
[application.network.domains]
@@ -92,12 +85,10 @@ chatgpt_base_url = "https://managed.example.com/backend-api/"
(
&wire["requirements"]["application"],
&wire["requirements"]["network"]["domains"],
&wire["requirements"]["chatgptBaseUrl"]
),
(
&json!({"network": {"enabled": true, "domains": {"gov.example.com": "allow", "github.com": "deny"}}, "storage": null}),
&json!({"github.com": "allow"}),
&json!("https://managed.example.com/backend-api/")
),
"{table}"
);