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

Function test_missing_auth_header

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

Source from the content-addressed store, hash-verified

247
248#[tokio::test]
249async 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]
261async fn test_invalid_auth_format() {

Callers

nothing calls this directly

Calls 1

make_appFunction · 0.85

Tested by

no test coverage detected