()
| 218 | |
| 219 | #[test] |
| 220 | fn normalize_wss_to_https() { |
| 221 | let url = Url::parse("wss://localhost:8551/path").unwrap(); |
| 222 | let result = JwtValidator::normalize_engine_url(url).unwrap(); |
| 223 | assert_eq!(result.scheme(), "https"); |
| 224 | assert_eq!(result.host_str(), Some("localhost")); |
| 225 | assert_eq!(result.port(), Some(8551)); |
| 226 | assert_eq!(result.path(), "/path"); |
| 227 | } |
| 228 | |
| 229 | #[test] |
| 230 | fn normalize_unsupported_scheme_error() { |