()
| 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() { |
nothing calls this directly
no test coverage detected