Skip to content

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

test(composio): seed offline session token in direct integrations test

Steven Enamakel8754b8f9ef4c
diff --git a/crates/openhuman-core/src/integrations/composio/client_tests.rs b/crates/openhuman-core/src/integrations/composio/client_tests.rs
index 4abe5cdbf5..47dfe83462 100644
--- a/crates/openhuman-core/src/integrations/composio/client_tests.rs
+++ b/crates/openhuman-core/src/integrations/composio/client_tests.rs
@@ -412,6 +412,15 @@ async fn direct_connected_integrations_fetches_schemas_without_backend_composio_
let mut config = config_with_session_token(&tmp);
config.workspace_dir = tmp.path().join("workspace");
config.api_url = Some(backend_url);
+ crate::security::credentials::AuthService::from_config(&config)
+ .store_provider_token(
+ crate::security::credentials::APP_SESSION_PROVIDER,
+ crate::security::credentials::DEFAULT_AUTH_PROFILE_NAME,
+ "desktop.test.local",
+ std::collections::HashMap::new(),
+ true,
+ )
+ .expect("store offline local session token");
config.composio.mode = "direct".into();
config.composio.pin_host_credential(
crate::config::ComposioHostCredential::direct("ck_test_spawn_direct")