expect_create_snapshot(mock_image_ctx, 0);
C_SaferCond ctx;
- auto req = new MockCreatePrimaryRequest(&mock_image_ctx, "gid", 0U, nullptr,
- &ctx);
+ auto req = new MockCreatePrimaryRequest(&mock_image_ctx, "gid", CEPH_NOSNAP,
+ 0U, nullptr, &ctx);
req->send();
ASSERT_EQ(0, ctx.wait());
}
expect_can_create_primary_snapshot(mock_utils, false, false, false);
C_SaferCond ctx;
- auto req = new MockCreatePrimaryRequest(&mock_image_ctx, "gid", 0U, nullptr,
- &ctx);
+ auto req = new MockCreatePrimaryRequest(&mock_image_ctx, "gid", CEPH_NOSNAP,
+ 0U, nullptr, &ctx);
req->send();
ASSERT_EQ(-EINVAL, ctx.wait());
}
"mirror", "mirror uuid"}}, -EINVAL);
C_SaferCond ctx;
- auto req = new MockCreatePrimaryRequest(&mock_image_ctx, "gid", 0U, nullptr,
- &ctx);
+ auto req = new MockCreatePrimaryRequest(&mock_image_ctx, "gid", CEPH_NOSNAP,
+ 0U, nullptr, &ctx);
req->send();
ASSERT_EQ(-EINVAL, ctx.wait());
}
expect_create_snapshot(mock_image_ctx, -EINVAL);
C_SaferCond ctx;
- auto req = new MockCreatePrimaryRequest(&mock_image_ctx, "gid", 0U, nullptr,
- &ctx);
+ auto req = new MockCreatePrimaryRequest(&mock_image_ctx, "gid", CEPH_NOSNAP,
+ 0U, nullptr, &ctx);
req->send();
ASSERT_EQ(-EINVAL, ctx.wait());
}
expect_unlink_peer(mock_image_ctx, mock_unlink_peer_request, snap_id, "uuid",
0);
C_SaferCond ctx;
- auto req = new MockCreatePrimaryRequest(&mock_image_ctx, "gid", 0U, nullptr,
- &ctx);
+ auto req = new MockCreatePrimaryRequest(&mock_image_ctx, "gid", CEPH_NOSNAP,
+ 0U, nullptr, &ctx);
req->send();
ASSERT_EQ(0, ctx.wait());
}