From: Laura Flores Date: Wed, 15 May 2024 19:14:54 +0000 (+0000) Subject: test/neorados: remove depreciated RemoteReads cls test X-Git-Tag: testing/wip-vshankar-testing-20250105.135958-squid-debug~36^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=f5de2ff5ebc474120fa0077e866962dca5dcd02f;p=ceph-ci.git test/neorados: remove depreciated RemoteReads cls test Following https://github.com/ceph/ceph/pull/55923/commits/0928f7b0c38b25c840c0de05d902ce6c371925f8, where cls_remote_reads was depreciated, we should remove the test that references this nonexistent file. Fixes: https://tracker.ceph.com/issues/66019 Signed-off-by: Laura Flores (cherry picked from commit 53dc0f3297346642c7ce164c75894ad519cd63d0) --- diff --git a/src/test/neorados/cls.cc b/src/test/neorados/cls.cc index aadc8172098..6463ec2f96c 100644 --- a/src/test/neorados/cls.cc +++ b/src/test/neorados/cls.cc @@ -50,49 +50,3 @@ CORO_TEST_F(NeoRadosCls, DNE, NeoRadosTest) sys::errc::operation_not_supported); co_return; } - -CORO_TEST_F(NeoRadosCls, RemoteReads, NeoRadosTest) -{ - SKIP_IF_CRIMSON(); - static constexpr std::size_t object_size = 4096; - static constexpr std::array oids{"src_object.1"sv, "src_object.2"sv, - "src_object.3"sv}; - - std::array buf; - buf.fill(1); - - for (const auto& oid : oids) { - buffer::list in; - in.append(buf.data(), buf.size()); - co_await execute(oid, WriteOp{}.write_full(std::move(in))); - } - - // Construct JSON request passed to "test_gather" method, and in - // turn, to "test_read" method - buffer::list in; - { - auto formatter = std::make_unique(true); - formatter->open_object_section("foo"); - encode_json("src_objects", oids, formatter.get()); - encode_json("cls", "test_remote_reads", formatter.get()); - encode_json("method", "test_read", formatter.get()); - encode_json("pool", pool_name(), formatter.get()); - formatter->close_section(); - formatter->flush(in); - } - - static const auto target = "tgt_object"s; - - // Create target object by combining data gathered from source - // objects using "test_read" method - co_await execute(target, - WriteOp{}.exec("test_remote_reads", "test_gather", in)); - - - // Read target object and check its size. - buffer::list out; - co_await execute(target, ReadOp{}.read(0, 0, &out)); - EXPECT_EQ(3 * object_size, out.length()); - - co_return; -}