Skip to content

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

fix(connectors): correct test module path for composio network tests

Steven Enamakel57e488fff5fa
diff --git a/crates/openhuman-core/src/integrations/composio/client/network_tests.rs b/crates/openhuman-core/src/integrations/composio/client/network_tests.rs
index 34e4f283bd..d1ad278ffd 100644
--- a/crates/openhuman-core/src/integrations/composio/client/network_tests.rs
+++ b/crates/openhuman-core/src/integrations/composio/client/network_tests.rs
@@ -25,7 +25,10 @@ fn proxy(all: Option<&str>, http: Option<&str>, https: Option<&str>) -> ProxyCon
all_proxy: all.map(str::to_string),
http_proxy: http.map(str::to_string),
https_proxy: https.map(str::to_string),
- scope: ProxyScope::OpenHuman,
+ // Scoped to Composio so that, while this process-global setting is
+ // installed, no other test's loopback request is proxied.
+ scope: ProxyScope::Services,
+ services: vec!["tool.composio".into()],
..ProxyConfig::default()
}
}
diff --git a/crates/openhuman-core/src/modules/connectors_tests.rs b/crates/openhuman-core/src/modules/connectors_tests.rs
index 5e6b46fd54..742f611cfb 100644
--- a/crates/openhuman-core/src/modules/connectors_tests.rs
+++ b/crates/openhuman-core/src/modules/connectors_tests.rs
@@ -106,7 +106,9 @@ fn direct_mode_hands_the_module_the_hosts_proxy_policy() {
enabled: true,
https_proxy: Some("http://127.0.0.1:3128".into()),
no_proxy: vec!["localhost".into()],
- scope: ProxyScope::OpenHuman,
+ // Scoped to Composio so no other test's loopback request is proxied.
+ scope: ProxyScope::Services,
+ services: vec!["tool.composio".into()],
..ProxyConfig::default()
});
let proxied = module_config(&config).expect("resolves");