mirror of
https://github.com/ceph/ceph
synced 2025-02-19 08:57:27 +00:00
Merge pull request #10348 from trociny/wip-16717
test: use wrapper that respects RBD_FEATURES when creating rbd image Reviewed-by: Jason Dillaman <dillaman@redhat.com>
This commit is contained in:
commit
d808091402
@ -687,11 +687,11 @@ TEST_F(TestLibRBD, TestCreateLsDeletePP)
|
||||
int order = 0;
|
||||
std::string name = get_temp_image_name();
|
||||
std::string name2 = get_temp_image_name();
|
||||
uint64_t size = 2 << 20;
|
||||
|
||||
uint64_t size = 2 << 20;
|
||||
|
||||
ASSERT_EQ(0, create_image_pp(rbd, ioctx, name.c_str(), size, &order));
|
||||
ASSERT_EQ(1, test_ls_pp(rbd, ioctx, 1, name.c_str()));
|
||||
ASSERT_EQ(0, rbd.create(ioctx, name2.c_str(), size, &order));
|
||||
ASSERT_EQ(0, create_image_pp(rbd, ioctx, name2.c_str(), size, &order));
|
||||
ASSERT_EQ(2, test_ls_pp(rbd, ioctx, 2, name.c_str(), name2.c_str()));
|
||||
ASSERT_EQ(0, rbd.remove(ioctx, name.c_str()));
|
||||
ASSERT_EQ(1, test_ls_pp(rbd, ioctx, 1, name2.c_str()));
|
||||
|
Loading…
Reference in New Issue
Block a user