void RadosTestECNS::SetUpTestCase()
{
+ SKIP_IF_CRIMSON();
auto pool_prefix = fmt::format("{}_", ::testing::UnitTest::GetInstance()->current_test_case()->name());
pool_name = get_temp_pool_name(pool_prefix);
ASSERT_EQ("", create_one_ec_pool(pool_name, &s_cluster));
void RadosTestECNS::TearDownTestCase()
{
+ SKIP_IF_CRIMSON();
ASSERT_EQ(0, destroy_one_ec_pool(pool_name, &s_cluster));
}
void RadosTestEC::SetUpTestCase()
{
+ SKIP_IF_CRIMSON();
auto pool_prefix = fmt::format("{}_", ::testing::UnitTest::GetInstance()->current_test_case()->name());
pool_name = get_temp_pool_name(pool_prefix);
ASSERT_EQ("", create_one_ec_pool(pool_name, &s_cluster));
void RadosTestEC::TearDownTestCase()
{
+ SKIP_IF_CRIMSON();
ASSERT_EQ(0, destroy_one_ec_pool(pool_name, &s_cluster));
}
void RadosTestEC::SetUp()
{
+ SKIP_IF_CRIMSON();
cluster = RadosTestEC::s_cluster;
ASSERT_EQ(0, rados_ioctx_create(cluster, pool_name.c_str(), &ioctx));
nspace = get_temp_pool_name();
void RadosTestEC::TearDown()
{
+ SKIP_IF_CRIMSON();
if (cleanup) {
cleanup_default_namespace(ioctx);
cleanup_namespace(ioctx, nspace);
~LibRadosTwoPoolsECPP() override {};
protected:
static void SetUpTestCase() {
+ SKIP_IF_CRIMSON();
pool_name = get_temp_pool_name();
ASSERT_EQ("", create_one_ec_pool_pp(pool_name, s_cluster));
src_pool_name = get_temp_pool_name();
src_ioctx.application_enable("rados", true);
}
static void TearDownTestCase() {
+ SKIP_IF_CRIMSON();
ASSERT_EQ(0, s_cluster.pool_delete(src_pool_name.c_str()));
ASSERT_EQ(0, destroy_one_ec_pool_pp(pool_name, s_cluster));
}
#include <errno.h>
#include <vector>
+#include "crimson_utils.h"
#include "gtest/gtest.h"
#include "include/rados/librados.h"
#include "test/librados/test.h"
}
TEST(LibRadosPools, PoolGetBaseTier) {
+ SKIP_IF_CRIMSON();
rados_t cluster;
std::string pool_name = get_temp_pool_name();
ASSERT_EQ("", create_one_pool(pool_name, &cluster));
#include <fmt/format.h>
#include "test_cxx.h"
#include "test_shared.h"
+#include "crimson_utils.h"
#include "include/scope_guard.h"
using namespace librados;
void RadosTestParamPPNS::SetUp()
{
- if (strcmp(GetParam(), "cache") == 0 && cache_pool_name.empty()) {
+ if (!is_crimson_cluster() && strcmp(GetParam(), "cache") == 0 &&
+ cache_pool_name.empty()) {
auto pool_prefix = fmt::format("{}_", ::testing::UnitTest::GetInstance()->current_test_case()->name());
- cache_pool_name = get_temp_pool_name(pool_prefix);
+ cache_pool_name = get_temp_pool_name();
bufferlist inbl;
ASSERT_EQ(0, cluster.mon_command(
"{\"prefix\": \"osd pool create\", \"pool\": \"" + cache_pool_name +
void RadosTestParamPP::SetUp()
{
- if (strcmp(GetParam(), "cache") == 0 && cache_pool_name.empty()) {
+ if (!is_crimson_cluster() && strcmp(GetParam(), "cache") == 0 &&
+ cache_pool_name.empty()) {
auto pool_prefix = fmt::format("{}_", ::testing::UnitTest::GetInstance()->current_test_case()->name());
- cache_pool_name = get_temp_pool_name(pool_prefix);
+ cache_pool_name = get_temp_pool_name();
bufferlist inbl;
ASSERT_EQ(0, cluster.mon_command(
"{\"prefix\": \"osd pool create\", \"pool\": \"" + cache_pool_name +
void RadosTestECPP::SetUpTestCase()
{
+ SKIP_IF_CRIMSON();
auto pool_prefix = fmt::format("{}_", ::testing::UnitTest::GetInstance()->current_test_case()->name());
pool_name = get_temp_pool_name(pool_prefix);
ASSERT_EQ("", create_one_ec_pool_pp(pool_name, s_cluster));
void RadosTestECPP::TearDownTestCase()
{
+ SKIP_IF_CRIMSON();
ASSERT_EQ(0, destroy_one_ec_pool_pp(pool_name, s_cluster));
}
void RadosTestECPP::SetUp()
{
+ SKIP_IF_CRIMSON();
ASSERT_EQ(0, cluster.ioctx_create(pool_name.c_str(), ioctx));
nspace = get_temp_pool_name();
ioctx.set_namespace(nspace);
void RadosTestECPP::TearDown()
{
+ SKIP_IF_CRIMSON();
if (cleanup) {
cleanup_default_namespace(ioctx);
cleanup_namespace(ioctx, nspace);
~LibRadosTwoPoolsECPP() override {};
protected:
static void SetUpTestCase() {
+ SKIP_IF_CRIMSON();
pool_name = get_temp_pool_name();
ASSERT_EQ("", create_one_ec_pool_pp(pool_name, s_cluster));
}
static void TearDownTestCase() {
+ SKIP_IF_CRIMSON();
ASSERT_EQ(0, destroy_one_ec_pool_pp(pool_name, s_cluster));
}
static std::string cache_pool_name;