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(platform): add schema-controller parity tests for platform modules
Steven Enamakelaaf7caee3e3b
diff --git a/crates/openhuman-core/src/config/schemas_tests.rs b/crates/openhuman-core/src/config/schemas_tests.rsindex c1a9b684e8..2a380e7299 100644--- a/crates/openhuman-core/src/config/schemas_tests.rs+++ b/crates/openhuman-core/src/config/schemas_tests.rs@@ -7,7 +7,7 @@ fn config_schema_catalog_matches_registered_controllers() {assert_schema_controller_parity(&all_controller_schemas(),&all_registered_controllers(),- "get_settings",+ "get",);}use crate::core::runtime::DispatchCtx;diff --git a/crates/openhuman-core/src/platform/connectivity/schemas_tests.rs b/crates/openhuman-core/src/platform/connectivity/schemas_tests.rsindex a223406fd3..0d82686edc 100644--- a/crates/openhuman-core/src/platform/connectivity/schemas_tests.rs+++ b/crates/openhuman-core/src/platform/connectivity/schemas_tests.rs@@ -1,4 +1,14 @@use super::*;+use crate::core::all::assert_schema_controller_parity;++#[test]+fn connectivity_schema_catalog_matches_registered_controllers() {+ assert_schema_controller_parity(+ &all_controller_schemas(),+ &all_registered_controllers(),+ "diag",+ );+}use crate::core::runtime::DispatchCtx;#[test]diff --git a/crates/openhuman-core/src/platform/doctor/schemas_tests.rs b/crates/openhuman-core/src/platform/doctor/schemas_tests.rsindex 16c13e630e..912a75ed24 100644--- a/crates/openhuman-core/src/platform/doctor/schemas_tests.rs+++ b/crates/openhuman-core/src/platform/doctor/schemas_tests.rs@@ -1,4 +1,14 @@use super::*;+use crate::core::all::assert_schema_controller_parity;++#[test]+fn doctor_schema_catalog_matches_registered_controllers() {+ assert_schema_controller_parity(+ &all_controller_schemas(),+ &all_registered_controllers(),+ "report",+ );+}#[test]fn report_schema() {diff --git a/crates/openhuman-core/src/platform/health/schemas_tests.rs b/crates/openhuman-core/src/platform/health/schemas_tests.rsindex bbcfb27fb3..416333cd8e 100644--- a/crates/openhuman-core/src/platform/health/schemas_tests.rs+++ b/crates/openhuman-core/src/platform/health/schemas_tests.rs@@ -1,4 +1,14 @@use super::*;+use crate::core::all::assert_schema_controller_parity;++#[test]+fn health_schema_catalog_matches_registered_controllers() {+ assert_schema_controller_parity(+ &all_controller_schemas(),+ &all_registered_controllers(),+ "snapshot",+ );+}use crate::core::runtime::DispatchCtx;#[test]diff --git a/crates/openhuman-core/src/platform/service/schemas_tests.rs b/crates/openhuman-core/src/platform/service/schemas_tests.rsindex a0566b1f97..63219115c2 100644--- a/crates/openhuman-core/src/platform/service/schemas_tests.rs+++ b/crates/openhuman-core/src/platform/service/schemas_tests.rs@@ -1,4 +1,14 @@use super::*;+use crate::core::all::assert_schema_controller_parity;++#[test]+fn service_schema_catalog_matches_registered_controllers() {+ assert_schema_controller_parity(+ &all_controller_schemas(),+ &all_registered_controllers(),+ "status",+ );+}#[test]fn lifecycle_schemas_have_no_inputs_except_self_signals() {