()
| 247 | |
| 248 | #[tokio::test] |
| 249 | async fn test_missing_auth_header() { |
| 250 | let mock_server = MockServer::start().await; |
| 251 | let app = make_app(&mock_server.uri()); |
| 252 | let req = Request::builder() |
| 253 | .uri("/v1/chat/completions") |
| 254 | .body(Body::empty()) |
| 255 | .unwrap(); |
| 256 | let resp = app.oneshot(req).await.unwrap(); |
| 257 | assert_eq!(resp.status(), StatusCode::UNAUTHORIZED); |
| 258 | } |
| 259 | |
| 260 | #[tokio::test] |
| 261 | async fn test_invalid_auth_format() { |
nothing calls this directly
no test coverage detected