#include "test/librbd/test_fixture.h"
#include "test/librbd/test_support.h"
+#include "test/librados/crimson_utils.h"
#include "include/rbd/librbd.h"
#include "include/rbd/librbd.hpp"
#include "test/librados/test.h"
TEST_F(TestGroup, add_snapshot)
{
+ SKIP_IF_CRIMSON();
REQUIRE_FORMAT_V2();
rados_ioctx_t ioctx;
TEST_F(TestGroup, add_snapshotPP)
{
+ SKIP_IF_CRIMSON();
REQUIRE_FORMAT_V2();
librados::IoCtx ioctx;
#include <boost/assign/list_of.hpp>
#include <utility>
#include <vector>
+#include "test/librados/crimson_utils.h"
using namespace std;
}
TEST_F(TestInternal, SnapRollbackLocksImage) {
+ SKIP_IF_CRIMSON();
REQUIRE_FEATURE(RBD_FEATURE_EXCLUSIVE_LOCK);
ASSERT_EQ(0, create_snapshot("snap1", false));
}
TEST_F(TestInternal, WriteFailsToLockImageBlocklisted) {
+ SKIP_IF_CRIMSON();
REQUIRE_FEATURE(RBD_FEATURE_EXCLUSIVE_LOCK);
librados::Rados blocklist_rados;
}
TEST_F(TestInternal, WriteFailsToLockImageBlocklistedWatch) {
+ SKIP_IF_CRIMSON();
REQUIRE_FEATURE(RBD_FEATURE_EXCLUSIVE_LOCK);
librados::Rados blocklist_rados;
TEST_F(TestInternal, SnapshotCopyup)
{
+ //https://tracker.ceph.com/issues/58263
+ // Clone overlap is WIP
+ SKIP_IF_CRIMSON();
REQUIRE_FEATURE(RBD_FEATURE_LAYERING);
librbd::ImageCtx *ictx;
}
TEST_F(TestInternal, WriteFullCopyup) {
+ SKIP_IF_CRIMSON();
REQUIRE_FEATURE(RBD_FEATURE_LAYERING);
librbd::ImageCtx *ictx;
TEST_F(TestInternal, SparsifyClone) {
+ SKIP_IF_CRIMSON();
REQUIRE_FEATURE(RBD_FEATURE_LAYERING);
librbd::ImageCtx *ictx;
#include "include/err.h"
#include "common/ceph_mutex.h"
#include "json_spirit/json_spirit.h"
+#include "test/librados/crimson_utils.h"
#include "gtest/gtest.h"
TEST_F(TestLibRBD, ListChildrenTiered)
{
+ SKIP_IF_CRIMSON();
REQUIRE_FEATURE(RBD_FEATURE_LAYERING);
librbd::RBD rbd;
TEST_F(TestLibRBD, RebuildObjectMapViaLockOwner)
{
+ SKIP_IF_CRIMSON();
REQUIRE_FEATURE(RBD_FEATURE_EXCLUSIVE_LOCK | RBD_FEATURE_OBJECT_MAP);
librados::IoCtx ioctx;
TEST_F(TestLibRBD, RenameViaLockOwner)
{
+ SKIP_IF_CRIMSON();
REQUIRE_FEATURE(RBD_FEATURE_EXCLUSIVE_LOCK);
librados::IoCtx ioctx;
TEST_F(TestLibRBD, SnapCreateViaLockOwner)
{
+ SKIP_IF_CRIMSON();
REQUIRE_FEATURE(RBD_FEATURE_EXCLUSIVE_LOCK);
librados::IoCtx ioctx;
TEST_F(TestLibRBD, SnapRemoveViaLockOwner)
{
+ SKIP_IF_CRIMSON();
REQUIRE_FEATURE(RBD_FEATURE_FAST_DIFF);
librados::IoCtx ioctx;
}
TEST_F(TestLibRBD, UpdateFeaturesViaLockOwner) {
-
+ SKIP_IF_CRIMSON();
REQUIRE_FEATURE(RBD_FEATURE_EXCLUSIVE_LOCK);
librados::IoCtx ioctx;
TEST_F(TestLibRBD, FlattenViaLockOwner)
{
+ SKIP_IF_CRIMSON();
REQUIRE_FEATURE(RBD_FEATURE_EXCLUSIVE_LOCK);
librados::IoCtx ioctx;
TEST_F(TestLibRBD, ResizeViaLockOwner)
{
+ SKIP_IF_CRIMSON();
REQUIRE_FEATURE(RBD_FEATURE_EXCLUSIVE_LOCK);
librados::IoCtx ioctx;
TEST_F(TestLibRBD, SparsifyViaLockOwner)
{
+ SKIP_IF_CRIMSON();
REQUIRE_FEATURE(RBD_FEATURE_EXCLUSIVE_LOCK);
librados::IoCtx ioctx;
TEST_F(TestLibRBD, ExclusiveLockTransition)
{
+ SKIP_IF_CRIMSON();
REQUIRE_FEATURE(RBD_FEATURE_EXCLUSIVE_LOCK);
librados::IoCtx ioctx;
TEST_F(TestLibRBD, ExclusiveLock)
{
+ SKIP_IF_CRIMSON();
REQUIRE_FEATURE(RBD_FEATURE_EXCLUSIVE_LOCK);
static char buf[10];
TEST_F(TestLibRBD, BreakLock)
{
+ SKIP_IF_CRIMSON();
REQUIRE_FEATURE(RBD_FEATURE_EXCLUSIVE_LOCK);
REQUIRE(!is_rbd_pwl_enabled((CephContext *)_rados.cct()));
TEST_F(TestLibRBD, QuiesceWatch)
{
+ SKIP_IF_CRIMSON();
rados_ioctx_t ioctx;
rados_ioctx_create(_cluster, m_pool_name.c_str(), &ioctx);
TEST_F(TestLibRBD, QuiesceWatchPP)
{
+ SKIP_IF_CRIMSON();
librbd::RBD rbd;
librados::IoCtx ioctx;
ASSERT_EQ(0, _rados.ioctx_create(m_pool_name.c_str(), ioctx));
TEST_F(TestLibRBD, QuiesceWatchError)
{
+ SKIP_IF_CRIMSON();
librbd::RBD rbd;
librados::IoCtx ioctx;
ASSERT_EQ(0, _rados.ioctx_create(m_pool_name.c_str(), ioctx));
TEST_F(TestLibRBD, ConcurrentOperations)
{
+ SKIP_IF_CRIMSON();
REQUIRE_FEATURE(RBD_FEATURE_EXCLUSIVE_LOCK);
librbd::RBD rbd;
*/
#include "test/librbd/test_fixture.h"
#include "test/librbd/test_support.h"
+#include "test/librados/crimson_utils.h"
#include "librbd/ExclusiveLock.h"
#include "librbd/ImageState.h"
#include "librbd/ImageWatcher.h"
TEST_F(TestMirroring, SnapshotUnlinkPeer)
{
+ SKIP_IF_CRIMSON();
REQUIRE_FORMAT_V2();
ASSERT_EQ(0, m_rbd.mirror_mode_set(m_ioctx, RBD_MIRROR_MODE_IMAGE));