#include <seastar/core/app-template.hh>
#include "common/ceph_argparse.h"
+#include "crimson/common/auth_handler.h"
#include "crimson/common/config_proxy.h"
#include "crimson/mon/MonClient.h"
#include "crimson/net/Connection.h"
using Config = ceph::common::ConfigProxy;
using MonClient = ceph::mon::Client;
+namespace {
+
+class DummyAuthHandler : public ceph::common::AuthHandler {
+public:
+ void handle_authentication(const EntityName& name,
+ uint64_t global_id,
+ const AuthCapsInfo& caps) override {}
+};
+
+DummyAuthHandler dummy_handler;
+
+}
+
static seastar::future<> test_monc()
{
return ceph::common::sharded_conf().start(EntityName{}, string_view{"ceph"}).then([] {
if (conf->ms_crc_header) {
msgr->set_crc_header();
}
- return seastar::do_with(MonClient{*msgr},
+ return seastar::do_with(MonClient{*msgr, dummy_handler},
[msgr](auto& monc) {
return msgr->start(&monc).then([&monc] {
return seastar::with_timeout(