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

Function test_invalid_auth_format

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

Source from the content-addressed store, hash-verified

259
260#[tokio::test]
261async fn test_invalid_auth_format() {
262 let mock_server = MockServer::start().await;
263 let app = make_app(&mock_server.uri());
264 let req = Request::builder()
265 .uri("/v1/chat/completions")
266 .header("authorization", "Basic abc123")
267 .body(Body::empty())
268 .unwrap();
269 let resp = app.oneshot(req).await.unwrap();
270 assert_eq!(resp.status(), StatusCode::UNAUTHORIZED);
271}
272
273#[tokio::test]
274async fn test_unknown_virtual_key() {

Callers

nothing calls this directly

Calls 1

make_appFunction · 0.85

Tested by

no test coverage detected