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(flows): remove redundant trust and boot sweep tests
Steven Enamakelfc0e5dd0ab2d
diff --git a/crates/openhuman-core/src/flows/ops_approval_manifest_and_catalog_tests.rs b/crates/openhuman-core/src/flows/ops_approval_manifest_and_catalog_tests.rsindex 2df5cb5284..c0da8525ff 100644--- a/crates/openhuman-core/src/flows/ops_approval_manifest_and_catalog_tests.rs+++ b/crates/openhuman-core/src/flows/ops_approval_manifest_and_catalog_tests.rs@@ -522,35 +522,6 @@ async fn approval_manifest_never_claims_trust_that_was_never_granted() {}}-#[test]-fn split_manifest_trust_claims_nothing_without_a_gate() {- let entries = vec![- json!({ "kind": "approvable", "tool_name": "flows_http_request" }),- json!({ "kind": "approvable", "tool_name": "flows_code" }),- json!({ "kind": "blocked", "tool_name": "SHOPIFY_CREATE_ORDER" }),- ];-- // No gate: nothing ever parks, so nothing is missing — and no grant was ever- // made, so nothing is already trusted either. Both lists must be empty; a- // populated `already_trusted` here is what the save+enable card renders as- // "already authorized" for a permission the flow does not hold.- let (missing, already_trusted) = split_manifest_trust(&entries, false, &HashSet::new());- assert!(missing.is_empty(), "{missing:?}");- assert!(already_trusted.is_empty(), "{already_trusted:?}");-- // Gate installed, nothing granted: every approvable key is asked for, and- // the non-approvable entry is still skipped.- let (missing, already_trusted) = split_manifest_trust(&entries, true, &HashSet::new());- assert_eq!(missing, vec!["flows_http_request", "flows_code"]);- assert!(already_trusted.is_empty(), "{already_trusted:?}");-- // Gate installed with one grant held: that key moves across, and only it.- let trusted: HashSet<String> = ["flows_code".to_string()].into_iter().collect();- let (missing, already_trusted) = split_manifest_trust(&entries, true, &trusted);- assert_eq!(missing, vec!["flows_http_request"]);- assert_eq!(already_trusted, vec!["flows_code"]);-}-#[tokio::test]async fn get_tool_contract_rejects_a_malformed_slug_before_any_catalog_fetch() {let tmp = TempDir::new().unwrap();diff --git a/crates/openhuman-core/src/flows/ops_tests.rs b/crates/openhuman-core/src/flows/ops_tests.rsindex af39ba6c64..7f84db8cd7 100644--- a/crates/openhuman-core/src/flows/ops_tests.rs+++ b/crates/openhuman-core/src/flows/ops_tests.rs@@ -672,10 +672,3 @@ mod tool_contract_and_wiring_warnings_tests;mod triggers_and_resume_tests;#[path = "ops_validate_warnings_and_connections_tests.rs"]mod validate_warnings_and_connections_tests;--#[test]-fn the_boot_sweep_leaves_shared_backends_alone() {- use super::run_management::{boot_sweep_plan, BootSweepPlan};- assert_eq!(boot_sweep_plan(false), BootSweepPlan::EveryScope);- assert_eq!(boot_sweep_plan(true), BootSweepPlan::Nothing);-}