cognee-http-server 0.1.0

HTTP server exposing the cognee add/cognify/search pipeline (single-user, no-auth).
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//! Integration tests for `GET /`.

mod support;

use axum::http::StatusCode;

/// `GET /` must return 200 with exactly `{"message": "Hello, World, I am alive!"}`.
#[tokio::test]
async fn test_root_returns_hello_world() {
    let state = support::build_test_state().await;
    let app = support::test_router(state).await;
    let resp = support::oneshot_get(app, "/").await;

    assert_eq!(resp.status(), StatusCode::OK);
    let body = support::body_json(resp).await;
    assert_eq!(body["message"], "Hello, World, I am alive!");
}