()
| 285 | |
| 286 | #[tokio::test] |
| 287 | async fn test_empty_bearer_token() { |
| 288 | let mock_server = MockServer::start().await; |
| 289 | let app = make_app(&mock_server.uri()); |
| 290 | let req = Request::builder() |
| 291 | .uri("/v1/models") |
| 292 | .header("authorization", "Bearer ") |
| 293 | .body(Body::empty()) |
| 294 | .unwrap(); |
| 295 | let resp = app.oneshot(req).await.unwrap(); |
| 296 | assert_eq!(resp.status(), StatusCode::UNAUTHORIZED); |
| 297 | } |
| 298 | |
| 299 | // ========== DLP Tests ========== |
| 300 |
nothing calls this directly
no test coverage detected