Skip to content

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

chore: add schemas_tests modules across multiple crates

Steven Enamakel8137d0ce7ad7
diff --git a/crates/openhuman-core/src/config/schemas_tests.rs b/crates/openhuman-core/src/config/schemas_tests.rs
index 7932f252b9..c2d02233ef 100644
--- a/crates/openhuman-core/src/config/schemas_tests.rs
+++ b/crates/openhuman-core/src/config/schemas_tests.rs
@@ -1,14 +1,6 @@
use super::schema_defs::schemas;
use super::*;
-#[test]
-fn catalog_counts_match_and_nonempty() {
- let s = all_controller_schemas();
- let h = all_registered_controllers();
- assert_eq!(s.len(), h.len());
- assert!(s.len() >= 20, "config namespace should expose ≥20 fns");
-}
-
#[test]
fn all_schemas_use_config_namespace_and_have_descriptions() {
for s in all_controller_schemas() {
diff --git a/crates/openhuman-core/src/cron/schemas_tests.rs b/crates/openhuman-core/src/cron/schemas_tests.rs
index e265a59dd8..821dacc09e 100644
--- a/crates/openhuman-core/src/cron/schemas_tests.rs
+++ b/crates/openhuman-core/src/cron/schemas_tests.rs
@@ -106,17 +106,6 @@ fn all_controller_schemas_covers_every_supported_function() {
);
}
-#[test]
-fn all_registered_controllers_has_handler_per_schema() {
- let controllers = all_registered_controllers();
- assert_eq!(controllers.len(), 6);
- let names: Vec<_> = controllers.iter().map(|c| c.schema.function).collect();
- assert_eq!(
- names,
- vec!["add", "list", "update", "remove", "run", "runs"]
- );
-}
-
// ── read_required ───────────────────────────────────────────────
#[test]
diff --git a/crates/openhuman-core/src/flows/schemas_tests.rs b/crates/openhuman-core/src/flows/schemas_tests.rs
index 00e6e6dd3a..d46da0a25d 100644
--- a/crates/openhuman-core/src/flows/schemas_tests.rs
+++ b/crates/openhuman-core/src/flows/schemas_tests.rs
@@ -95,54 +95,6 @@ fn all_controller_schemas_covers_every_supported_function() {
);
}
-#[test]
-fn all_registered_controllers_has_handler_per_schema() {
- let controllers = all_registered_controllers();
- assert_eq!(controllers.len(), 36);
- let names: Vec<_> = controllers.iter().map(|c| c.schema.function).collect();
- assert_eq!(
- names,
- vec![
- "create",
- "duplicate",
- "validate",
- "import",
- "get",
- "list",
- "list_connections",
- "update",
- "delete",
- "set_enabled",
- "run",
- "run_detached",
- "resume",
- "cancel_run",
- "list_runs",
- "list_all_runs",
- "get_run",
- "prune_runs",
- "build",
- "build_cancel",
- "discover",
- "list_suggestions",
- "dismiss_suggestion",
- "mark_suggestion_built",
- "draft_create",
- "draft_get",
- "draft_update",
- "draft_list",
- "draft_delete",
- "draft_promote",
- "get_history",
- "rollback",
- "search_tool_catalog",
- "get_tool_contract",
- "required_connections",
- "approval_manifest",
- ]
- );
-}
-
#[test]
fn schemas_import_requires_graph_and_optional_format() {
let s = schemas("import");
diff --git a/crates/openhuman-core/src/inference/host_runtime/schemas_tests.rs b/crates/openhuman-core/src/inference/host_runtime/schemas_tests.rs
index ddf47a8f2b..21913295d2 100644
--- a/crates/openhuman-core/src/inference/host_runtime/schemas_tests.rs
+++ b/crates/openhuman-core/src/inference/host_runtime/schemas_tests.rs
@@ -1,16 +1,5 @@
use super::*;
-#[test]
-fn catalog_counts_match_and_nonempty() {
- let s = all_controller_schemas();
- let h = all_registered_controllers();
- assert_eq!(s.len(), h.len());
- assert!(
- s.len() >= 10,
- "local inference should expose >=10 controller fns"
- );
-}
-
#[test]
fn all_schemas_use_inference_namespace_and_have_descriptions() {
for s in all_controller_schemas() {
diff --git a/crates/openhuman-core/src/integrations/composio/schemas_tests.rs b/crates/openhuman-core/src/integrations/composio/schemas_tests.rs
index 331fd53fb3..edebea407f 100644
--- a/crates/openhuman-core/src/integrations/composio/schemas_tests.rs
+++ b/crates/openhuman-core/src/integrations/composio/schemas_tests.rs
@@ -1,14 +1,6 @@
use super::*;
use serde_json::json;
-#[test]
-fn catalog_counts_match() {
- let s = all_controller_schemas();
- let h = all_registered_controllers();
- assert_eq!(s.len(), h.len());
- assert!(s.len() >= 9);
-}
-
#[test]
fn all_schemas_use_composio_namespace_and_have_descriptions() {
for s in all_controller_schemas() {
diff --git a/crates/openhuman-core/src/mcp/registry/schemas_tests.rs b/crates/openhuman-core/src/mcp/registry/schemas_tests.rs
index d736752f2e..f030a6d233 100644
--- a/crates/openhuman-core/src/mcp/registry/schemas_tests.rs
+++ b/crates/openhuman-core/src/mcp/registry/schemas_tests.rs
@@ -93,12 +93,6 @@ fn all_controller_schemas_covers_expected_methods() {
assert!(functions.contains(&"oauth_begin"));
}
-#[test]
-fn all_registered_controllers_has_handler_per_schema() {
- let controllers = all_registered_controllers();
- assert_eq!(controllers.len(), 17);
-}
-
#[test]
fn all_registered_controllers_use_expected_namespaces() {
for c in all_registered_controllers() {
diff --git a/crates/openhuman-core/src/platform/socket/schemas_tests.rs b/crates/openhuman-core/src/platform/socket/schemas_tests.rs
index 7957959d96..2228b3cfd4 100644
--- a/crates/openhuman-core/src/platform/socket/schemas_tests.rs
+++ b/crates/openhuman-core/src/platform/socket/schemas_tests.rs
@@ -12,13 +12,6 @@ fn catalog_lists_all_five_controllers() {
assert!(names.contains(&"connect_with_session"));
}
-#[test]
-fn registered_controllers_match_schemas_count() {
- let schemas = all_controller_schemas();
- let handlers = all_registered_controllers();
- assert_eq!(schemas.len(), handlers.len());
-}
-
#[test]
fn all_schemas_use_socket_namespace() {
for s in all_controller_schemas() {
diff --git a/crates/openhuman-core/src/security/credentials/schemas_tests.rs b/crates/openhuman-core/src/security/credentials/schemas_tests.rs
index 428033255f..7668e66c3f 100644
--- a/crates/openhuman-core/src/security/credentials/schemas_tests.rs
+++ b/crates/openhuman-core/src/security/credentials/schemas_tests.rs
@@ -2,20 +2,6 @@ use super::*;
// ── Schema catalog coverage ────────────────────────────────────
-#[test]
-fn catalog_counts_match() {
- let schemas = all_controller_schemas();
- let handlers = all_registered_controllers();
- assert_eq!(schemas.len(), handlers.len());
- // The account-bound `auth.oauth_*` (including `oauth_fetch_client_key`) /
- // `auth.create_channel_link_token` controllers moved to
- // `openhuman-tinyhumans`; the core keeps the rest.
- assert!(
- schemas.len() >= 7,
- "auth namespace should expose ≥7 core fns"
- );
-}
-
#[test]
fn all_schemas_use_auth_namespace_and_have_descriptions() {
for s in all_controller_schemas() {
diff --git a/crates/openhuman-core/src/security/devices/schemas_tests.rs b/crates/openhuman-core/src/security/devices/schemas_tests.rs
index 1611f94b04..380d6cd266 100644
--- a/crates/openhuman-core/src/security/devices/schemas_tests.rs
+++ b/crates/openhuman-core/src/security/devices/schemas_tests.rs
@@ -47,14 +47,6 @@ fn all_controller_schemas_covers_three_functions() {
assert_eq!(names, vec!["create_pairing", "list", "revoke"]);
}
-#[test]
-fn all_registered_controllers_has_handler_per_schema() {
- let controllers = all_registered_controllers();
- assert_eq!(controllers.len(), 3);
- let names: Vec<_> = controllers.iter().map(|c| c.schema.function).collect();
- assert_eq!(names, vec!["create_pairing", "list", "revoke"]);
-}
-
#[test]
fn read_required_errors_when_key_missing() {
let params = Map::new();