aboutsummaryrefslogtreecommitdiff
path: root/src/garage/tests/s3
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2022-09-14 17:07:55 +0200
committerAlex Auvolat <alex@adnab.me>2022-09-14 17:07:55 +0200
commit76f42a1a2b5cf088968a0730cf6de31b75f7a055 (patch)
tree1f9ad320ae90c62da74a311b86cc814d62f8b072 /src/garage/tests/s3
parent82600acf776acecfa73fbf23d4c7107eaae81e09 (diff)
downloadgarage-76f42a1a2b5cf088968a0730cf6de31b75f7a055.tar.gz
garage-76f42a1a2b5cf088968a0730cf6de31b75f7a055.zip
Properly return HTTP 204 when deleting non-existent object (fix #227)deleteobject-204
Diffstat (limited to 'src/garage/tests/s3')
-rw-r--r--src/garage/tests/s3/objects.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/garage/tests/s3/objects.rs b/src/garage/tests/s3/objects.rs
index e1175b81..65f9e867 100644
--- a/src/garage/tests/s3/objects.rs
+++ b/src/garage/tests/s3/objects.rs
@@ -263,4 +263,13 @@ async fn test_deleteobject() {
.unwrap();
assert!(l.contents.is_none());
+
+ // Deleting a non-existing object shouldn't be a problem
+ ctx.client
+ .delete_object()
+ .bucket(&bucket)
+ .key("l-0")
+ .send()
+ .await
+ .unwrap();
}