mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-04 20:37:15 +02:00
return a 200 on health check
This commit is contained in:
parent
764ced8b5c
commit
a268d0e283
2 changed files with 11 additions and 1 deletions
|
@ -10,3 +10,12 @@ async fn get_settings_unexisting_index() {
|
|||
assert!(version.get("buildDate").is_some());
|
||||
assert!(version.get("pkgVersion").is_some());
|
||||
}
|
||||
|
||||
#[actix_rt::test]
|
||||
async fn test_healthyness() {
|
||||
let server = Server::new().await;
|
||||
|
||||
let (response, status_code) = server.service.get("/health").await;
|
||||
assert_eq!(status_code, 200);
|
||||
assert_eq!(response["status"], "available");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue