()
| 272 | |
| 273 | #[tokio::test] |
| 274 | async fn test_unknown_virtual_key() { |
| 275 | let mock_server = MockServer::start().await; |
| 276 | let app = make_app(&mock_server.uri()); |
| 277 | let req = Request::builder() |
| 278 | .uri("/v1/chat/completions") |
| 279 | .header("authorization", "Bearer vk-unknown") |
| 280 | .body(Body::empty()) |
| 281 | .unwrap(); |
| 282 | let resp = app.oneshot(req).await.unwrap(); |
| 283 | assert_eq!(resp.status(), StatusCode::UNAUTHORIZED); |
| 284 | } |
| 285 | |
| 286 | #[tokio::test] |
| 287 | async fn test_empty_bearer_token() { |
nothing calls this directly
no test coverage detected