]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
test/crimson: enable unauthenticated connections for async_echo 26620/head
authorYingxin Cheng <yingxincheng@gmail.com>
Mon, 25 Feb 2019 06:36:29 +0000 (14:36 +0800)
committerYingxin Cheng <yingxincheng@gmail.com>
Mon, 25 Feb 2019 06:36:29 +0000 (14:36 +0800)
Enable co-operability with crimson-msgr in unittest_alien_echo.

Signed-off-by: Yingxin Cheng <yingxincheng@gmail.com>
src/test/crimson/test_async_echo.cc

index fef4b4946da657ee4b19e5ba33dad9f53ed0907c..98ea0e9d965ab2083022d8db86c1a324a34fbe9f 100644 (file)
@@ -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<Messenger> 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;