The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
feat(composio): add tests for client and connected integrations cache
Steven Enamakele2735eddb2c5
diff --git a/crates/openhuman-core/src/integrations/composio/client_tests.rs b/crates/openhuman-core/src/integrations/composio/client_tests.rsindex bff6e8b42b..f120fc1110 100644--- a/crates/openhuman-core/src/integrations/composio/client_tests.rs+++ b/crates/openhuman-core/src/integrations/composio/client_tests.rs@@ -152,6 +152,7 @@ async fn disabled_mode_reports_no_integrations_without_a_backend_call() {fn resolve_composio_route_backend_errors_without_session() {// Backend mode requires the app-session JWT — without it the// factory must return an explicit error (not silently downgrade).+ register_fake_backend_route();let tmp = tempfile::tempdir().expect("tempdir");let mut config = crate::config::Config::default();config.config_path = tmp.path().join("config.toml");diff --git a/crates/openhuman-core/src/integrations/composio/connected_integrations/cache_tests.rs b/crates/openhuman-core/src/integrations/composio/connected_integrations/cache_tests.rsindex 31352710fc..7c20655fbc 100644--- a/crates/openhuman-core/src/integrations/composio/connected_integrations/cache_tests.rs+++ b/crates/openhuman-core/src/integrations/composio/connected_integrations/cache_tests.rs@@ -31,7 +31,8 @@ fn cache_key_changes_when_backend_url_changes() {};crate::security::credentials::api_key::store_api_key(&config, "tiny_test_key").unwrap();let first = cache_key(&config);- config.api_url = Some("https://other.example".to_string());+ // The control-plane origin a host's config enricher resolved.+ config.resolved_endpoints.control_plane_url = Some("https://other.example".to_string());assert_ne!(first, cache_key(&config));}