()
| 259 | |
| 260 | #[tokio::test] |
| 261 | async fn test_invalid_auth_format() { |
| 262 | let mock_server = MockServer::start().await; |
| 263 | let app = make_app(&mock_server.uri()); |
| 264 | let req = Request::builder() |
| 265 | .uri("/v1/chat/completions") |
| 266 | .header("authorization", "Basic abc123") |
| 267 | .body(Body::empty()) |
| 268 | .unwrap(); |
| 269 | let resp = app.oneshot(req).await.unwrap(); |
| 270 | assert_eq!(resp.status(), StatusCode::UNAUTHORIZED); |
| 271 | } |
| 272 | |
| 273 | #[tokio::test] |
| 274 | async fn test_unknown_virtual_key() { |
nothing calls this directly
no test coverage detected