]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/test/librgw_file_aw.cc
update source to Ceph Pacific 16.2.2
[ceph.git] / ceph / src / test / librgw_file_aw.cc
index fc494fe5a008a785886ed8fba3a00464480b2f59..0a9f91b7090a9bfc4d0543dfd0f782315baa84ad 100644 (file)
@@ -47,7 +47,7 @@ namespace {
   bool do_verify = false;
   bool do_hexdump = false;
 
-  string bucket_name = "sorry_dave";
+  string bucket_name = "sorrydave";
   string object_name = "jocaml";
 
   struct rgw_file_handle *bucket_fh = nullptr;
@@ -333,6 +333,14 @@ TEST(LibRGW, DELETE_OBJECT) {
   }
 }
 
+TEST(LibRGW, DELETE_BUCKET) {
+  if (do_delete) {
+    int ret = rgw_unlink(fs, fs->root_fh, bucket_name.c_str(),
+                        RGW_UNLINK_FLAG_NONE);
+    ASSERT_EQ(ret, 0);
+  }
+}
+
 TEST(LibRGW, CLEANUP) {
   int ret;
   if (object_fh) {