Skip to content

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

test(e2e): update approval gated http graph test

Steven Enamakel1c9ba9b20055
diff --git a/tests/tinyflows_published_runs_e2e.rs b/tests/tinyflows_published_runs_e2e.rs
index be5c921c14..d7faac1c83 100644
--- a/tests/tinyflows_published_runs_e2e.rs
+++ b/tests/tinyflows_published_runs_e2e.rs
@@ -79,7 +79,7 @@ fn approval_gated_http_graph() -> Value {
"nodes": [
{ "id": "trigger", "kind": "trigger", "name": "Manual" },
{ "id": "request", "kind": "http_request", "name": "Blocked request",
- "config": { "method": "POST", "url": "http://127.0.0.1:1/must-not-connect" } },
+ "config": { "method": "POST", "url": "http://127.0.0.1:1/must-not-connect", "requires_approval": true } },
{ "id": "after", "kind": "output_parser", "name": "After request" }
],
"edges": [
@@ -302,7 +302,9 @@ async fn published_runs_use_scoped_host_capabilities_and_persist_lifecycle() {
.unwrap_or_default()
.to_lowercase();
assert!(
- failure.contains("read-only") || failure.contains("network"),
+ failure.contains("[policy-blocked]")
+ && failure.contains("flows http_request node is not permitted")
+ && failure.contains("readonly"),
"{terminal}"
);
assert!(