(id: &str)
| 112 | } |
| 113 | |
| 114 | fn sandbox(id: &str) -> Principal { |
| 115 | Principal::Sandbox(SandboxPrincipal { |
| 116 | sandbox_id: id.to_string(), |
| 117 | source: SandboxIdentitySource::BootstrapJwt { |
| 118 | issuer: "openshell-gateway:test".to_string(), |
| 119 | }, |
| 120 | trust_domain: Some("openshell".to_string()), |
| 121 | }) |
| 122 | } |
| 123 | |
| 124 | #[test] |
| 125 | fn user_principal_bypasses_equality_check() { |