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

Function test_unknown_virtual_key

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

Source from the content-addressed store, hash-verified

272
273#[tokio::test]
274async 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]
287async fn test_empty_bearer_token() {

Callers

nothing calls this directly

Calls 1

make_appFunction · 0.85

Tested by

no test coverage detected