}
TEST_F(LibRadosTwoPoolsPP, SetRedirectRead) {
+ // skip test if not yet luminous
+ {
+ bufferlist inbl, outbl;
+ ASSERT_EQ(0, cluster.mon_command(
+ "{\"prefix\": \"osd dump\"}",
+ inbl, &outbl, NULL));
+ string s(outbl.c_str(), outbl.length());
+ if (s.find("luminous") == std::string::npos) {
+ cout << "cluster is not yet luminous, skipping test" << std::endl;
+ return;
+ }
+ }
+
// create object
{
bufferlist bl;
cluster.wait_for_latest_osdmap();
}
TEST_F(LibRadosTwoPoolsECPP, SetRedirectRead) {
+ // skip test if not yet luminous
+ {
+ bufferlist inbl, outbl;
+ ASSERT_EQ(0, cluster.mon_command(
+ "{\"prefix\": \"osd dump\"}",
+ inbl, &outbl, NULL));
+ string s(outbl.c_str(), outbl.length());
+ if (s.find("luminous") == std::string::npos) {
+ cout << "cluster is not yet luminous, skipping test" << std::endl;
+ return;
+ }
+ }
+
// create object
{
bufferlist bl;