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
test(schemas): assert composio trigger registration and relax socket ordering
Steven Enamakel2729cb4af326
diff --git a/crates/openhuman-core/src/integrations/composio/schemas_tests.rs b/crates/openhuman-core/src/integrations/composio/schemas_tests.rsindex f14dc0e263..dfb1522684 100644--- a/crates/openhuman-core/src/integrations/composio/schemas_tests.rs+++ b/crates/openhuman-core/src/integrations/composio/schemas_tests.rs@@ -32,6 +32,15 @@ fn composio_schema_contracts_and_registration_are_preserved() {for function in keys {expect_schema_identity(&schemas(function), "composio", function);}+ let registered = all_registered_controllers();+ for function in ["list_triggers", "enable_trigger", "disable_trigger", "list_trigger_history"] {+ assert!(+ registered.iter().any(|controller| {+ controller.schema.namespace == "composio" && controller.schema.function == function+ }),+ "composio.{function} is not registered"+ );+ }let capabilities = schemas("list_capabilities");assert!(capabilities.inputs.is_empty());expect_schema_fields(&capabilities, &[("capabilities", Some(true))]);diff --git a/crates/openhuman-core/src/platform/socket/schemas_tests.rs b/crates/openhuman-core/src/platform/socket/schemas_tests.rsindex 680201a6fa..346d3db85c 100644--- a/crates/openhuman-core/src/platform/socket/schemas_tests.rs+++ b/crates/openhuman-core/src/platform/socket/schemas_tests.rs@@ -16,16 +16,10 @@ fn socket_schema_contracts_are_preserved() {.iter().map(|schema| schema.function).collect();- assert_eq!(- functions,- [- "connect",- "disconnect",- "state",- "emit",- "connect_with_session"- ]- );+ assert_eq!(functions.len(), 5);+ for expected in ["connect", "disconnect", "state", "emit", "connect_with_session"] {+ assert!(functions.contains(&expected), "missing socket.{expected}");+ }for schema in all_controller_schemas() {assert_eq!(schema.namespace, "socket");assert!(