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

Function validate_accepts_explicit_domain

crates/openshell-policy/src/lib.rs:1870–1885  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1868
1869 #[test]
1870 fn validate_accepts_explicit_domain() {
1871 let mut policy = restrictive_default_policy();
1872 policy.network_policies.insert(
1873 "ok".into(),
1874 NetworkPolicyRule {
1875 name: "ok-rule".into(),
1876 endpoints: vec![NetworkEndpoint {
1877 host: "example.com".into(),
1878 port: 443,
1879 ..Default::default()
1880 }],
1881 ..Default::default()
1882 },
1883 );
1884 assert!(validate_sandbox_policy(&policy).is_ok());
1885 }
1886
1887 #[test]
1888 fn validate_rejects_credential_signing_without_signing_service() {

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected