MCPcopy Create free account
hub / github.com/NVIDIA/OpenShell / test_sandbox_context_metadata

Function test_sandbox_context_metadata

crates/openshell-ocsf/src/builders/mod.rs:272–279  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

270
271 #[test]
272 fn test_sandbox_context_metadata() {
273 let ctx = test_sandbox_context();
274 let meta = ctx.metadata(&["security_control", "container"]);
275 assert_eq!(meta.version, "1.7.0");
276 assert_eq!(meta.product.name, "OpenShell Sandbox Supervisor");
277 assert_eq!(meta.profiles.len(), 2);
278 assert_eq!(meta.uid.as_deref(), Some("sandbox-abc123"));
279 }
280
281 #[test]
282 fn test_sandbox_context_container() {

Callers

nothing calls this directly

Calls 2

test_sandbox_contextFunction · 0.85
metadataMethod · 0.80

Tested by

no test coverage detected