MCPcopy Create free account
hub / github.com/clawshell/clawshell / test_empty_bearer_token

Function test_empty_bearer_token

src/app/tests.rs:287–297  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

285
286#[tokio::test]
287async 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

Callers

nothing calls this directly

Calls 1

make_appFunction · 0.85

Tested by

no test coverage detected