aKode: eliminato chatgpt_base_url ormai inutilizzato
- La chiave è ancora accettata nei file di configurazione ma ignorata. - Schemi JSON e TypeScript dell'app-server rigenerati; i bundle ora si chiamano akode_app_server_protocol*.schemas.json, come produce il generatore. - app-server: niente più avviso unused_mut nella build release. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -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}"
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user