Allow to get/set features in integration test server

This commit is contained in:
Louis Dureuil 2023-07-06 09:01:05 +02:00
parent 11d024c613
commit 222615d3df
No known key found for this signature in database

View File

@ -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<Path>) -> Opt {