From 222615d3dfd73e890c9c5d353edd17a6c406c9a1 Mon Sep 17 00:00:00 2001 From: Louis Dureuil Date: Thu, 6 Jul 2023 09:01:05 +0200 Subject: [PATCH] Allow to get/set features in integration test server --- meilisearch/tests/common/server.rs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/meilisearch/tests/common/server.rs b/meilisearch/tests/common/server.rs index 66b82eace..40d8e8366 100644 --- a/meilisearch/tests/common/server.rs +++ b/meilisearch/tests/common/server.rs @@ -189,6 +189,14 @@ impl Server { let url = format!("/tasks/{}", update_id); self.service.get(url).await } + + pub async fn get_features(&self) -> (Value, StatusCode) { + self.service.get("/experimental-features").await + } + + pub async fn set_features(&self, value: Value) -> (Value, StatusCode) { + self.service.patch("/experimental-features", value).await + } } pub fn default_settings(dir: impl AsRef) -> Opt {