Skip to content

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

test(core): add approval controller tests

Steven Enamakel78870de9bd59
diff --git a/crates/openhuman-core/src/core/all_bound_controller_tests.rs b/crates/openhuman-core/src/core/all_bound_controller_tests.rs
index b0bade1ff6..def1c176d9 100644
--- a/crates/openhuman-core/src/core/all_bound_controller_tests.rs
+++ b/crates/openhuman-core/src/core/all_bound_controller_tests.rs
@@ -16,6 +16,13 @@ fn staged_bound_methods() -> Vec<&'static str> {
methods.push("mcp_clients.registry_get");
methods.extend(["doctor.report", "doctor.models"]);
methods.extend(["encrypt.secret", "decrypt.secret"]);
+ methods.extend([
+ "approval.list_pending",
+ "approval.list_recent_decisions",
+ "approval.decide",
+ "approval.get_gate_state",
+ "approval.preauthorize_flow",
+ ]);
methods.extend([
"socket.connect",
"socket.disconnect",
@@ -690,3 +697,6 @@ mod app_state_controller_tests;
#[path = "all_devices_controller_tests.rs"]
mod devices_controller_tests;
+
+#[path = "all_approval_controller_tests.rs"]
+mod approval_controller_tests;