mirror of
https://github.com/meilisearch/MeiliSearch
synced 2024-11-26 23:04:26 +01:00
Allow to get/set features in integration test server
This commit is contained in:
parent
11d024c613
commit
222615d3df
@ -189,6 +189,14 @@ impl Server {
|
|||||||
let url = format!("/tasks/{}", update_id);
|
let url = format!("/tasks/{}", update_id);
|
||||||
self.service.get(url).await
|
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<Path>) -> Opt {
|
pub fn default_settings(dir: impl AsRef<Path>) -> Opt {
|
||||||
|
Loading…
Reference in New Issue
Block a user