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(security): update preauthorize parser tests
Steven Enamakel6bea4c58bcd1
diff --git a/crates/openhuman-core/src/security/approval/schemas_tests.rs b/crates/openhuman-core/src/security/approval/schemas_tests.rsindex 73d554aad4..295657f47b 100644--- a/crates/openhuman-core/src/security/approval/schemas_tests.rs+++ b/crates/openhuman-core/src/security/approval/schemas_tests.rs@@ -262,7 +262,7 @@ fn preauthorize_parser_preserves_flow_and_tool_strings_without_normalizing() {parse_preauthorize_flow(Map::from_iter([("tool_names".into(), json!([]))])).unwrap_err(),"missing required param 'flow_id'");- for value in [json!(null), json!(true), json!("tools"), json!({})] {+ for value in [json!(null), json!(true), json!(7), json!("tools"), json!({})] {let kind = value_kind(&value);assert_eq!(parse_preauthorize_flow(Map::from_iter([@@ -273,7 +273,7 @@ fn preauthorize_parser_preserves_flow_and_tool_strings_without_normalizing() {format!("invalid 'tool_names': expected array of strings, got {kind}"));}- for value in [json!(null), json!(false), json!(0), json!({})] {+ for value in [json!(null), json!(false), json!(0), json!([]), json!({})] {let kind = value_kind(&value);assert_eq!(parse_preauthorize_flow(Map::from_iter([