Skip to content

Commit 2e5a7f3

Browse files
authored
Merge pull request ceph#50491 from Matan-B/wip-matanb-c-snaps-tests
test/librados/snapshots*: Enable Crimson supported tests Reviewed-by: Samuel Just <[email protected]>
2 parents e967a14 + 0408337 commit 2e5a7f3

File tree

2 files changed

+1
-14
lines changed

2 files changed

+1
-14
lines changed

src/test/librados/snapshots.cc

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ typedef RadosTestEC LibRadosSnapshotsSelfManagedEC;
1818
const int bufsize = 128;
1919

2020
TEST_F(LibRadosSnapshots, SnapList) {
21-
SKIP_IF_CRIMSON();
2221
char buf[bufsize];
2322
memset(buf, 0xcc, sizeof(buf));
2423
ASSERT_EQ(0, rados_write(ioctx, "foo", buf, sizeof(buf), 0));
@@ -33,7 +32,6 @@ TEST_F(LibRadosSnapshots, SnapList) {
3332
}
3433

3534
TEST_F(LibRadosSnapshots, SnapRemove) {
36-
SKIP_IF_CRIMSON();
3735
char buf[bufsize];
3836
memset(buf, 0xcc, sizeof(buf));
3937
ASSERT_EQ(0, rados_write(ioctx, "foo", buf, sizeof(buf), 0));
@@ -46,7 +44,6 @@ TEST_F(LibRadosSnapshots, SnapRemove) {
4644
}
4745

4846
TEST_F(LibRadosSnapshots, Rollback) {
49-
SKIP_IF_CRIMSON();
5047
char buf[bufsize];
5148
memset(buf, 0xcc, sizeof(buf));
5249
ASSERT_EQ(0, rados_write(ioctx, "foo", buf, sizeof(buf), 0));
@@ -62,7 +59,6 @@ TEST_F(LibRadosSnapshots, Rollback) {
6259
}
6360

6461
TEST_F(LibRadosSnapshots, SnapGetName) {
65-
SKIP_IF_CRIMSON();
6662
char buf[bufsize];
6763
memset(buf, 0xcc, sizeof(buf));
6864
ASSERT_EQ(0, rados_write(ioctx, "foo", buf, sizeof(buf), 0));
@@ -80,7 +76,6 @@ TEST_F(LibRadosSnapshots, SnapGetName) {
8076
}
8177

8278
TEST_F(LibRadosSnapshotsSelfManaged, Snap) {
83-
SKIP_IF_CRIMSON();
8479
std::vector<uint64_t> my_snaps;
8580
my_snaps.push_back(-2);
8681
ASSERT_EQ(0, rados_ioctx_selfmanaged_snap_create(ioctx, &my_snaps.back()));
@@ -127,7 +122,6 @@ TEST_F(LibRadosSnapshotsSelfManaged, Snap) {
127122
}
128123

129124
TEST_F(LibRadosSnapshotsSelfManaged, Rollback) {
130-
SKIP_IF_CRIMSON();
131125
std::vector<uint64_t> my_snaps;
132126
my_snaps.push_back(-2);
133127
ASSERT_EQ(0, rados_ioctx_selfmanaged_snap_create(ioctx, &my_snaps.back()));

src/test/librados/snapshots_cxx.cc

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ typedef RadosTestECPP LibRadosSnapshotsSelfManagedECPP;
2020
const int bufsize = 128;
2121

2222
TEST_F(LibRadosSnapshotsPP, SnapListPP) {
23-
SKIP_IF_CRIMSON();
2423
char buf[bufsize];
2524
memset(buf, 0xcc, sizeof(buf));
2625
bufferlist bl1;
@@ -40,7 +39,6 @@ TEST_F(LibRadosSnapshotsPP, SnapListPP) {
4039
}
4140

4241
TEST_F(LibRadosSnapshotsPP, SnapRemovePP) {
43-
SKIP_IF_CRIMSON();
4442
char buf[bufsize];
4543
memset(buf, 0xcc, sizeof(buf));
4644
bufferlist bl1;
@@ -54,7 +52,6 @@ TEST_F(LibRadosSnapshotsPP, SnapRemovePP) {
5452
}
5553

5654
TEST_F(LibRadosSnapshotsPP, RollbackPP) {
57-
SKIP_IF_CRIMSON();
5855
char buf[bufsize];
5956
memset(buf, 0xcc, sizeof(buf));
6057
bufferlist bl1;
@@ -74,7 +71,6 @@ TEST_F(LibRadosSnapshotsPP, RollbackPP) {
7471
}
7572

7673
TEST_F(LibRadosSnapshotsPP, SnapGetNamePP) {
77-
SKIP_IF_CRIMSON();
7874
char buf[bufsize];
7975
memset(buf, 0xcc, sizeof(buf));
8076
bufferlist bl;
@@ -93,7 +89,6 @@ TEST_F(LibRadosSnapshotsPP, SnapGetNamePP) {
9389
}
9490

9591
TEST_F(LibRadosSnapshotsPP, SnapCreateRemovePP) {
96-
SKIP_IF_CRIMSON();
9792
// reproduces http://tracker.ceph.com/issues/10262
9893
bufferlist bl;
9994
bl.append("foo");
@@ -112,7 +107,6 @@ TEST_F(LibRadosSnapshotsPP, SnapCreateRemovePP) {
112107
}
113108

114109
TEST_F(LibRadosSnapshotsSelfManagedPP, SnapPP) {
115-
SKIP_IF_CRIMSON();
116110
std::vector<uint64_t> my_snaps;
117111
my_snaps.push_back(-2);
118112
ASSERT_FALSE(cluster.get_pool_is_selfmanaged_snaps_mode(pool_name));
@@ -244,6 +238,7 @@ TEST_F(LibRadosSnapshotsSelfManagedPP, RollbackPP) {
244238
}
245239

246240
TEST_F(LibRadosSnapshotsSelfManagedPP, SnapOverlapPP) {
241+
// WIP https://tracker.ceph.com/issues/58263
247242
SKIP_IF_CRIMSON();
248243
std::vector<uint64_t> my_snaps;
249244
IoCtx readioctx;
@@ -374,7 +369,6 @@ TEST_F(LibRadosSnapshotsSelfManagedPP, SnapOverlapPP) {
374369
}
375370

376371
TEST_F(LibRadosSnapshotsSelfManagedPP, Bug11677) {
377-
SKIP_IF_CRIMSON();
378372
std::vector<uint64_t> my_snaps;
379373
my_snaps.push_back(-2);
380374
ASSERT_EQ(0, ioctx.selfmanaged_snap_create(&my_snaps.back()));
@@ -465,7 +459,6 @@ TEST_F(LibRadosSnapshotsSelfManagedPP, OrderSnap) {
465459
}
466460

467461
TEST_F(LibRadosSnapshotsSelfManagedPP, ReusePurgedSnap) {
468-
SKIP_IF_CRIMSON();
469462
std::vector<uint64_t> my_snaps;
470463
my_snaps.push_back(-2);
471464
ASSERT_EQ(0, ioctx.selfmanaged_snap_create(&my_snaps.back()));

0 commit comments

Comments
 (0)