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
refactor(core): move all_tests module into core
Steven Enamakelb60ecf70885b
diff --git a/crates/openhuman-core/src/core/all_tests.rs b/crates/openhuman-core/src/core/all_tests.rsindex 567af4edd0..fda093d95b 100644--- a/crates/openhuman-core/src/core/all_tests.rs+++ b/crates/openhuman-core/src/core/all_tests.rs@@ -1,5 +1,3 @@-use crate::core::runtime::DispatchCtx;-use extensions_tests::ambient_rpc;use serde_json::Map;use super::*;@@ -19,7 +17,10 @@ fn schema(}}-fn noop_handler(_ctx: DispatchCtx, _params: Map<String, Value>) -> ControllerFuture {+fn noop_handler(+ _ctx: crate::core::runtime::DispatchCtx,+ _params: Map<String, Value>,+) -> ControllerFuture {Box::pin(async { Ok(Value::Null) })}@@ -801,7 +802,8 @@ fn validate_registry_rejects_duplicate_registered_controllers() {#[tokio::test]async fn try_invoke_registered_rpc_returns_none_for_unknown_method() {- let out = ambient_rpc("openhuman.not_a_real_method_xyz_123", Map::new()).await;+ let out =+ extensions_tests::ambient_rpc("openhuman.not_a_real_method_xyz_123", Map::new()).await;assert!(out.is_none(), "unknown methods must return None");}@@ -809,7 +811,7 @@ async fn try_invoke_registered_rpc_returns_none_for_unknown_method() {async fn try_invoke_registered_rpc_returns_some_for_known_method() {// `openhuman.health_snapshot` is registered at startup and takes no// required params — it must route and produce Some(_).- let out = ambient_rpc("openhuman.health_snapshot", Map::new()).await;+ let out = extensions_tests::ambient_rpc("openhuman.health_snapshot", Map::new()).await;assert!(out.is_some(), "known method must route");}@@ -823,7 +825,7 @@ async fn try_invoke_registered_rpc_routes_security_policy_info() {let ctx = CoreContext::for_test_with_config(DomainSet::full(), config);let out = CoreContext::scope(ctx,- ambient_rpc("openhuman.security_policy_info", Map::new()),+ extensions_tests::ambient_rpc("openhuman.security_policy_info", Map::new()),).await.expect("security policy info should be registered")@@ -968,7 +970,11 @@ async fn dispatch_returns_none_for_gated_method() {.expect("a flows.* method exists in the full registry");let ctx = CoreContext::for_test(DomainSet::harness(), None);- let out = CoreContext::scope(ctx, ambient_rpc(&gated_method, Map::new())).await;+ let out = CoreContext::scope(+ ctx,+ extensions_tests::ambient_rpc(&gated_method, Map::new()),+ )+ .await;assert!(out.is_none(),"gated method `{gated_method}` must dispatch as None under harness()"@@ -979,7 +985,7 @@ async fn dispatch_returns_none_for_gated_method() {let ctx = CoreContext::for_test(DomainSet::harness(), None);let out = CoreContext::scope(ctx,- ambient_rpc("openhuman.security_policy_info", Map::new()),+ extensions_tests::ambient_rpc("openhuman.security_policy_info", Map::new()),).await;assert!(