owner = rgw_account_id{account_id};
}
- formatter->open_object_section("result");
rgw_pubsub_topics result;
if (rgw::all_zonegroups_support(*site, rgw::zone_features::notification_v2) &&
driver->stat_topics_v1(tenant, null_yield, dpp()) == -ENOENT) {
encode_json("marker", next_token, formatter.get());
}
}
- formatter->close_section(); // result
formatter->flush(cout);
}
if tenant == '':
topics_result = admin(['topic', 'list'], cluster)
topics_json = json.loads(topics_result[0])
- for topic in topics_json['topics']:
+ for topic in topics_json:
rm_result = admin(['topic', 'rm', '--topic', topic['name']], cluster)
print(rm_result)
else:
topics_result = admin(['topic', 'list', '--tenant', tenant], cluster)
topics_json = json.loads(topics_result[0])
- for topic in topics_json['topics']:
+ for topic in topics_json:
rm_result = admin(['topic', 'rm', '--tenant', tenant, '--topic', topic['name']], cluster)
print(rm_result)
result = admin(['topic', 'list', '--tenant', tenant], get_config_cluster())
parsed_result = json.loads(result[0])
if assert_len:
- assert_equal(len(parsed_result['topics']), assert_len)
+ assert_equal(len(parsed_result), assert_len)
return parsed_result
if receiver is not None:
stop_kafka_receiver(receiver, task)
-
@attr('kafka_test')
def test_connection_caching():
""" test connection caching """