Skip to content

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

test(about_app): cover sandbox capability disabled state

Steven Enamakela91c1038d7c9
diff --git a/crates/openhuman-core/src/platform/about_app/ops_tests.rs b/crates/openhuman-core/src/platform/about_app/ops_tests.rs
index 2b9b6f06d0..e21ace0e51 100644
--- a/crates/openhuman-core/src/platform/about_app/ops_tests.rs
+++ b/crates/openhuman-core/src/platform/about_app/ops_tests.rs
@@ -43,3 +43,14 @@ fn every_mapped_domain_shows_disabled_when_its_component_is_off() {
}
}
}
+
+#[test]
+fn sandbox_capability_shows_disabled_when_sandbox_component_is_off() {
+ let cap = super::super::lookup("security.sandbox_backends").expect("sandbox capability");
+ assert_ne!(cap.status, CapabilityStatus::Disabled);
+ assert_eq!(
+ apply_components(cap, &off("sandbox")).status,
+ CapabilityStatus::Disabled
+ );
+ assert_eq!(apply_components(cap, &off("voice")).status, cap.status);
+}