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

Function wrong_port_denied

crates/openshell-supervisor-network/src/opa.rs:1564–1576  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1562
1563 #[test]
1564 fn wrong_port_denied() {
1565 let engine = test_engine();
1566 let input = NetworkInput {
1567 host: "api.anthropic.com".into(),
1568 port: 80,
1569 binary_path: PathBuf::from("/usr/bin/node"),
1570 binary_sha256: "unused".into(),
1571 ancestors: vec![],
1572 cmdline_paths: vec![],
1573 };
1574 let decision = engine.evaluate_network(&input).unwrap();
1575 assert!(!decision.allowed);
1576 }
1577
1578 #[test]
1579 fn query_sandbox_config_extracts_filesystem() {

Callers

nothing calls this directly

Calls 2

test_engineFunction · 0.85
evaluate_networkMethod · 0.80

Tested by

no test coverage detected