Skip to content

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

test(composio): pin host credential in cache scope fixtures

Steven Enamakel5cbdf6c91232
diff --git a/crates/openhuman-core/src/integrations/composio/connected_integrations/cache_scope_tests.rs b/crates/openhuman-core/src/integrations/composio/connected_integrations/cache_scope_tests.rs
index 49289420a5..6f07d81f73 100644
--- a/crates/openhuman-core/src/integrations/composio/connected_integrations/cache_scope_tests.rs
+++ b/crates/openhuman-core/src/integrations/composio/connected_integrations/cache_scope_tests.rs
@@ -1,15 +1,25 @@
use super::*;
+use crate::config::ComposioHostCredential;
use crate::core::runtime::{ContextOverlay, CoreContext, DomainSet};
use crate::tools::toolpacks::ToolGroups;
use std::sync::Arc;
fn config(dir: &std::path::Path) -> Config {
- Config {
+ let mut config = Config {
workspace_dir: dir.join("workspace"),
+ action_dir: dir.join("workspace"),
config_path: dir.join("config.toml"),
..Config::default()
- }
+ };
+ // A fixed fake host credential makes the shared service identity explicit.
+ // These tests seed cached data and never call the backend.
+ config.composio.pin_host_credential(
+ ComposioHostCredential::direct("ck_shared_scope_fixture")
+ .entity_id("shared-service-entity"),
+ );
+ config
}
+
fn profile(config: &Config, id: &str) -> Arc<CoreContext> {
CoreContext::for_test_with_config(DomainSet::kernel(), config.clone()).derive_with(
ContextOverlay::new(config.clone(), DomainSet::kernel(), ToolGroups::none()).profile(id),