Skip to content

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

feat(cli): add e2e test for memory engine over JSON-RPC

Steven Enamakel8b40c98a9a80
diff --git a/crates/openhuman-cli/Cargo.toml b/crates/openhuman-cli/Cargo.toml
index eab8a3225b..95ecbf4279 100644
--- a/crates/openhuman-cli/Cargo.toml
+++ b/crates/openhuman-cli/Cargo.toml
@@ -270,6 +270,13 @@ required-features = ["media"]
name = "memory_graph_roundtrip_e2e"
path = "../../tests/memory_graph_roundtrip_e2e.rs"
+[[test]]
+# Memory-engine selection over JSON-RPC against a hosted-CortexDB double.
+name = "memory_engine_e2e"
+path = "../../tests/memory_engine_e2e.rs"
+# Needs the memory module (the migration source) and the remote-engine gate.
+required-features = ["modules", "memory-remote"]
+
[[test]]
name = "memory_roundtrip_e2e"
path = "../../tests/memory_roundtrip_e2e.rs"
diff --git a/tests/memory_engine_e2e.rs b/tests/memory_engine_e2e.rs
index 6ae5bc9ee2..63dfa00bc4 100644
--- a/tests/memory_engine_e2e.rs
+++ b/tests/memory_engine_e2e.rs
@@ -37,6 +37,7 @@ use tempfile::tempdir;
use openhuman_core::core::auth::{init_rpc_token, CORE_TOKEN_ENV_VAR};
use openhuman_core::core::jsonrpc::build_core_http_router;
+use openhuman_core::memory::api::provider::MemoryCore;
const TEST_RPC_TOKEN: &str = "memory-engine-e2e-token";
const TEST_API_KEY: &str = "tiny_live_memory_engine_e2e";