test index delete

This commit is contained in:
mpostma
2021-02-18 20:44:33 +01:00
parent ed3f8f5cc0
commit b293948d36
5 changed files with 25 additions and 30 deletions

View File

@ -33,4 +33,9 @@ impl Index<'_> {
self.service.put(url, body).await
}
pub async fn delete(&self) -> (Value, StatusCode) {
let url = format!("/indexes/{}", self.uid);
self.service.delete(url).await
}
}