]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
test/neorados: remove depreciated RemoteReads cls test
authorLaura Flores <lflores@ibm.com>
Wed, 15 May 2024 19:14:54 +0000 (19:14 +0000)
committerLaura Flores <lflores@ibm.com>
Wed, 19 Jun 2024 20:53:07 +0000 (15:53 -0500)
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 <lflores@ibm.com>
(cherry picked from commit 53dc0f3297346642c7ce164c75894ad519cd63d0)

src/test/neorados/cls.cc

index aadc8172098a9f2c4ed19914b0245637f48f79f2..6463ec2f96c2629726a6eeb0a7bf74fb0c5d09cf 100644 (file)
@@ -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<char, object_size> 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<JSONFormatter>(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;
-}