From: Jon Bailey Date: Thu, 4 Jun 2026 10:27:07 +0000 (+0100) Subject: test: Remove invalid unit test X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=b05cfd16126527cb4178130344334f8dee1f3748;p=ceph.git test: Remove invalid unit test This test was talking about testing invalid ops, however with the inclusion of sync reads in EC (https://github.com/ceph/ceph/pull/67079), it is valid to perform class reads in EC. In addition, work was done around illegal ops here: https://github.com/ceph/ceph/pull/66258 and the existance of TEST(ClsHello, BadMethods) in test_cls_hello.cc covers illegal ops in that PR leading me to think this is unneccisairy. Because of these reasons, I think its better this test is removed as it is incorrect and also not working. Signed-off-by: Jon Bailey --- diff --git a/src/test/librados/split_op_cxx.cc b/src/test/librados/split_op_cxx.cc index e71318f1590..4abc416bb92 100644 --- a/src/test/librados/split_op_cxx.cc +++ b/src/test/librados/split_op_cxx.cc @@ -322,25 +322,6 @@ TEST_P(LibRadosSplitOpECPP, ReadSecondShardWithVersion) { ASSERT_TRUE(AssertOperateWithSplitOp(0, 2, "foo", &read, &bl, balanced_read_flags)); } -TEST_P(LibRadosSplitOpECPP, ReadWithIllegalClsOp) { - SKIP_IF_CRIMSON(); - bufferlist bl; - bl.append("ceph"); - ObjectWriteOperation write1; - write1.write(0, bl); - ASSERT_TRUE(AssertOperateWithoutSplitOp(0, "foo", &write1)); - - bufferlist new_bl; - new_bl.append("CEPH"); - ObjectWriteOperation write2; - bufferlist exec_inbl, exec_outbl; - int exec_rval; - rados::cls::fifo::op::init_part op; - encode(op, exec_inbl); - write2.exec(fifo::method::init_part, exec_inbl, &exec_outbl, &exec_rval); - ASSERT_TRUE(AssertOperateWithoutSplitOp(-EOPNOTSUPP, "foo", &write2)); -} - TEST_P(LibRadosSplitOpECPP, XattrReads) { SKIP_IF_CRIMSON(); bufferlist bl, attr_bl, attr_read_bl;