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(e2e): consolidate schema catalog tests into a single file
Steven Enamakel7997d55eac48
diff --git a/tests/config_auth_app_state_connectivity_e2e.rs b/tests/config_auth_app_state_connectivity_e2e.rsindex c5f2ba4d6b..96fdf9f79b 100644--- a/tests/config_auth_app_state_connectivity_e2e.rs+++ b/tests/config_auth_app_state_connectivity_e2e.rs@@ -2023,6 +2023,60 @@ async fn worker_a_controller_schemas_are_fully_exposed() {);}+ // Inference/agent/tools/approval methods must also be advertised.+ let advertised: Vec<String> = schema+ .get("methods")+ .and_then(Value::as_array)+ .expect("schema methods array")+ .iter()+ .filter_map(|method| method.get("method").and_then(Value::as_str))+ .map(str::to_string)+ .collect();+ for expected in [+ "openhuman.inference_status",+ "openhuman.inference_get_client_config",+ "openhuman.inference_update_model_settings",+ "openhuman.inference_update_local_settings",+ "openhuman.inference_list_models",+ "openhuman.inference_device_profile",+ "openhuman.inference_presets",+ "openhuman.inference_apply_preset",+ "openhuman.inference_diagnostics",+ "openhuman.inference_openai_oauth_start",+ "openhuman.inference_openai_oauth_complete",+ "openhuman.inference_openai_oauth_status",+ "openhuman.inference_openai_oauth_disconnect",+ "openhuman.inference_summarize",+ "openhuman.inference_prompt",+ "openhuman.inference_vision_prompt",+ "openhuman.inference_test_provider_model",+ "openhuman.inference_analyze_sentiment",+ "openhuman.agent_chat",+ "openhuman.agent_chat_simple",+ "openhuman.agent_server_status",+ "openhuman.agent_list_definitions",+ "openhuman.agent_get_definition",+ "openhuman.agent_reload_definitions",+ "openhuman.agent_triage_evaluate",+ "openhuman.tools_composio_execute",+ "openhuman.tools_web_search",+ "openhuman.tools_web_answer",+ "openhuman.tools_web_contents",+ "openhuman.tools_searxng_search",+ "openhuman.tools_apify_linkedin_scrape",+ "openhuman.tool_registry_list",+ "openhuman.tool_registry_get",+ "openhuman.tool_registry_diagnostics",+ "openhuman.approval_list_pending",+ "openhuman.approval_list_recent_decisions",+ "openhuman.approval_decide",+ ] {+ assert!(+ advertised.iter().any(|method| method == expected),+ "schema catalog must expose {expected}"+ );+ }+let unknown_app_state = app_state_schemas("missing");assert_eq!(unknown_app_state.namespace, "app_state");assert_eq!(unknown_app_state.function, "unknown");diff --git a/tests/domain_modules_e2e.rs b/tests/domain_modules_e2e.rsindex f8c040c2b8..37bbce8ec1 100644--- a/tests/domain_modules_e2e.rs+++ b/tests/domain_modules_e2e.rs@@ -261,69 +261,6 @@ fn schema_methods(value: &Value) -> Vec<(String, String, String)> {.collect()}-#[tokio::test]-async fn target_domain_schemas_are_exposed_over_http_schema_catalog() {- let _lock = env_lock();- let harness = setup().await;-- let schema = schema(&harness.rpc_base).await;- let methods = schema_methods(&schema);-- for namespace in [- "config",- "auth",- "app_state",- "connectivity",- "inference",- "agent",- "tools",- "tool_registry",- "approval",- "memory",- "memory_tree",- "memory_sync",- "memory_sources",- "embeddings",- "channels",- "composio",- "threads",- ] {- assert!(- methods.iter().any(|(ns, _, _)| ns == namespace),- "schema catalog must expose namespace {namespace}"- );- }-- for method in [- "openhuman.config_get",- "openhuman.auth_get_state",- "openhuman.app_state_snapshot",- "openhuman.connectivity_diag",- "openhuman.inference_presets",- "openhuman.agent_server_status",- "openhuman.tools_web_search",- "openhuman.tool_registry_list",- "openhuman.approval_list_pending",- "openhuman.memory_ingestion_status",- "openhuman.memory_tree_pipeline_status",- "openhuman.memory_sync_status_list",- "openhuman.memory_sources_list",- "openhuman.embeddings_get_settings",- "openhuman.channels_list",- "openhuman.composio_get_mode",- "openhuman.threads_list",- ] {- assert!(- methods- .iter()- .any(|(_, _, rpc_method)| rpc_method == method),- "schema catalog must expose {method}"- );- }-- harness.join.abort();-}-#[tokio::test]async fn config_agent_tools_and_threads_mutation_paths_round_trip() {let _lock = env_lock();diff --git a/tests/worker_b_domain_e2e.rs b/tests/worker_b_domain_e2e.rsindex 7dff3b03ff..20fefa4259 100644--- a/tests/worker_b_domain_e2e.rs+++ b/tests/worker_b_domain_e2e.rs@@ -218,67 +218,6 @@ fn error_message<'a>(value: &'a Value, context: &str) -> &'a str {.unwrap_or_else(|| panic!("{context}: error missing message: {value}"))}-#[tokio::test]-async fn worker_b_schema_catalog_exposes_all_controller_methods() {- let _lock = env_lock();- let harness = setup().await;-- let catalog = schema(&harness.rpc_base).await;- let methods = catalog- .get("methods")- .and_then(Value::as_array)- .expect("schema methods array");-- for expected in [- "openhuman.inference_status",- "openhuman.inference_get_client_config",- "openhuman.inference_update_model_settings",- "openhuman.inference_update_local_settings",- "openhuman.inference_list_models",- "openhuman.inference_device_profile",- "openhuman.inference_presets",- "openhuman.inference_apply_preset",- "openhuman.inference_diagnostics",- "openhuman.inference_openai_oauth_start",- "openhuman.inference_openai_oauth_complete",- "openhuman.inference_openai_oauth_status",- "openhuman.inference_openai_oauth_disconnect",- "openhuman.inference_summarize",- "openhuman.inference_prompt",- "openhuman.inference_vision_prompt",- "openhuman.inference_test_provider_model",- "openhuman.inference_analyze_sentiment",- "openhuman.agent_chat",- "openhuman.agent_chat_simple",- "openhuman.agent_server_status",- "openhuman.agent_list_definitions",- "openhuman.agent_get_definition",- "openhuman.agent_reload_definitions",- "openhuman.agent_triage_evaluate",- "openhuman.tools_composio_execute",- "openhuman.tools_web_search",- "openhuman.tools_web_answer",- "openhuman.tools_web_contents",- "openhuman.tools_searxng_search",- "openhuman.tools_apify_linkedin_scrape",- "openhuman.tool_registry_list",- "openhuman.tool_registry_get",- "openhuman.tool_registry_diagnostics",- "openhuman.approval_list_pending",- "openhuman.approval_list_recent_decisions",- "openhuman.approval_decide",- ] {- assert!(- methods- .iter()- .any(|method| { method.get("method").and_then(Value::as_str) == Some(expected) }),- "schema catalog must expose {expected}"- );- }-- harness.join.abort();-}-#[tokio::test]async fn inference_settings_oauth_and_validation_paths_are_reachable() {let _lock = env_lock();