network integration tests

This commit is contained in:
Louis Dureuil 2025-02-03 12:24:30 +01:00
parent 64409a1de7
commit 6e1865b75b
No known key found for this signature in database
3 changed files with 615 additions and 0 deletions

View file

@ -167,6 +167,10 @@ impl Server<Owned> {
self.service.patch("/experimental-features", value).await
}
pub async fn set_network(&self, value: Value) -> (Value, StatusCode) {
self.service.patch("/network", value).await
}
pub async fn get_metrics(&self) -> (Value, StatusCode) {
self.service.get("/metrics").await
}
@ -392,6 +396,10 @@ impl<State> Server<State> {
pub async fn get_features(&self) -> (Value, StatusCode) {
self.service.get("/experimental-features").await
}
pub async fn get_network(&self) -> (Value, StatusCode) {
self.service.get("/network").await
}
}
pub fn default_settings(dir: impl AsRef<Path>) -> Opt {