Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

test: assert legacy layout refusal in data paths e2e

Steven Enamakel2833f16ef619
diff --git a/tests/in_process/domain_modules_e2e.rs b/tests/in_process/domain_modules_e2e.rs
index a6b1122439..44857e0f3a 100644
--- a/tests/in_process/domain_modules_e2e.rs
+++ b/tests/in_process/domain_modules_e2e.rs
@@ -302,9 +302,15 @@ async fn config_agent_tools_and_threads_mutation_paths_round_trip() {
json!({}),
)
.await;
+ // The harness runs on the legacy single-user layout (the config dir is the
+ // shared root), where the controller refuses rather than hand a caller a
+ // folder that holds every account's data to delete.
assert!(
- payload(&data_paths, "get_data_paths").is_object(),
- "data paths should return an object: {data_paths}"
+ data_paths
+ .pointer("/error/message")
+ .and_then(Value::as_str)
+ .is_some_and(|message| message.contains("legacy data layout")),
+ "data paths on the legacy layout must be refused: {data_paths}"
);
let diagnostics = rpc(