From: Yingxin Cheng Date: Mon, 25 Feb 2019 06:36:29 +0000 (+0800) Subject: test/crimson: enable unauthenticated connections for async_echo X-Git-Tag: v14.1.1~156^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=a8ddabb8ab803b49e53c7f2d3e381d83237bfc1f;p=ceph.git test/crimson: enable unauthenticated connections for async_echo Enable co-operability with crimson-msgr in unittest_alien_echo. Signed-off-by: Yingxin Cheng --- diff --git a/src/test/crimson/test_async_echo.cc b/src/test/crimson/test_async_echo.cc index fef4b4946da65..98ea0e9d965ab 100644 --- a/src/test/crimson/test_async_echo.cc +++ b/src/test/crimson/test_async_echo.cc @@ -26,6 +26,7 @@ struct Server { entity.name, "pong", entity.addr.get_nonce(), 0)); msgr->set_cluster_protocol(CEPH_OSD_PROTOCOL); msgr->set_default_policy(Messenger::Policy::stateless_server(0)); + dispatcher.ms_set_require_authorizer(false); } unique_ptr msgr; struct ServerDispatcher : Dispatcher { @@ -82,6 +83,7 @@ struct Client { getpid(), 0)); msgr->set_cluster_protocol(CEPH_OSD_PROTOCOL); msgr->set_default_policy(Messenger::Policy::lossy_client(0)); + dispatcher.ms_set_require_authorizer(false); } struct ClientDispatcher : Dispatcher { std::mutex mutex;