Skip to content

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

test(channels): store api key in test config fixtures

Steven Enamakela7b9964f1be4
diff --git a/crates/openhuman-core/src/channels/providers/relay/ops_tests.rs b/crates/openhuman-core/src/channels/providers/relay/ops_tests.rs
index 8c5996b0dd..e17a489a6e 100644
--- a/crates/openhuman-core/src/channels/providers/relay/ops_tests.rs
+++ b/crates/openhuman-core/src/channels/providers/relay/ops_tests.rs
@@ -77,6 +77,8 @@ fn config(tmp: &tempfile::TempDir) -> Config {
config.memory.conversations.enabled = false;
config.agent.session_dual_write = false;
config.agent.session_shadow_reads = false;
+ crate::security::credentials::api_key::store_api_key(&config, "test-session-fixture-key")
+ .expect("store relay test credential");
config
}
diff --git a/crates/openhuman-core/src/channels/runtime/dispatch/host_agent/dispatch_tests.rs b/crates/openhuman-core/src/channels/runtime/dispatch/host_agent/dispatch_tests.rs
index 8a2490769d..4a60a7a25a 100644
--- a/crates/openhuman-core/src/channels/runtime/dispatch/host_agent/dispatch_tests.rs
+++ b/crates/openhuman-core/src/channels/runtime/dispatch/host_agent/dispatch_tests.rs
@@ -82,6 +82,8 @@ fn config(tmp: &tempfile::TempDir, agent_id: Option<&str>) -> Config {
config.memory.conversations.enabled = false;
config.agent.session_dual_write = false;
config.agent.session_shadow_reads = false;
+ crate::security::credentials::api_key::store_api_key(&config, "test-session-fixture-key")
+ .expect("store channel test credential");
if let Some(agent_id) = agent_id {
config
.agent