MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / probe_paths_unversioned

Function probe_paths_unversioned

nodedb/src/control/server/http/server.rs:389–411  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

387
388 #[tokio::test]
389 async fn probe_paths_unversioned() {
390 let r = stub_router();
391 assert_eq!(
392 status_for(&r, Method::GET, "/healthz").await,
393 StatusCode::OK
394 );
395 assert_eq!(
396 status_for(&r, Method::GET, "/health/live").await,
397 StatusCode::OK
398 );
399 assert_eq!(
400 status_for(&r, Method::GET, "/health/ready").await,
401 StatusCode::OK
402 );
403 assert_eq!(
404 status_for(&r, Method::POST, "/health/drain").await,
405 StatusCode::OK
406 );
407 assert_eq!(
408 status_for(&r, Method::GET, "/metrics").await,
409 StatusCode::OK
410 );
411 }
412
413 #[tokio::test]
414 async fn v1_routes_exist() {

Callers

nothing calls this directly

Calls 1

stub_routerFunction · 0.85

Tested by

no test coverage detected