From 018cadc59845e1a6eac2f29a0770613eb234dd5d Mon Sep 17 00:00:00 2001 From: tamo Date: Tue, 16 Mar 2021 14:02:14 +0100 Subject: [PATCH] follow the IBM convention --- meilisearch-http/src/routes/health.rs | 2 +- meilisearch-http/tests/health.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/meilisearch-http/src/routes/health.rs b/meilisearch-http/src/routes/health.rs index 15ca2a5f5..053790d61 100644 --- a/meilisearch-http/src/routes/health.rs +++ b/meilisearch-http/src/routes/health.rs @@ -9,6 +9,6 @@ pub fn services(cfg: &mut web::ServiceConfig) { #[get("/health")] async fn get_health() -> Result { - let payload = serde_json::json!({ "status": "ok" }); + let payload = serde_json::json!({ "status": "available" }); Ok(HttpResponse::Ok().body(payload.to_string())) } diff --git a/meilisearch-http/tests/health.rs b/meilisearch-http/tests/health.rs index b14921f4f..2be66887f 100644 --- a/meilisearch-http/tests/health.rs +++ b/meilisearch-http/tests/health.rs @@ -8,5 +8,5 @@ async fn test_healthyness() { let (response, status_code) = server.get_health().await; assert_eq!(status_code, 200); - assert_eq!(response["status"], "ok"); + assert_eq!(response["status"], "available"); }