Skip to content
This repository has been archived by the owner on Jun 23, 2022. It is now read-only.

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
levy5307 committed Dec 24, 2020
1 parent 3992e36 commit 41aeee5
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions src/runtime/test/negotiation_manager_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
#include <dsn/utility/flags.h>
#include <dsn/dist/failure_detector/fd.code.definition.h>
#include <http/http_server_impl.h>
#include "nfs/nfs_code_definition.h"

namespace dsn {
namespace security {
Expand Down Expand Up @@ -90,9 +91,11 @@ TEST_F(negotiation_manager_test, on_rpc_recv_msg)
{RPC_NEGOTIATION_ACK, false, true, true},
{fd::RPC_FD_FAILURE_DETECTOR_PING, false, true, true},
{fd::RPC_FD_FAILURE_DETECTOR_PING_ACK, false, true, true},
{RPC_HTTP_SERVICE, true, true, true},
{RPC_HTTP_SERVICE, false, false, true},
{RPC_HTTP_SERVICE, false, true, false}};
{RPC_HTTP_SERVICE, false, true, true},
{RPC_HTTP_SERVICE_ACK, false, true, true},
{service::RPC_NFS_COPY, true, true, true},
{service::RPC_NFS_COPY, false, false, true},
{service::RPC_NFS_COPY, false, true, false}};

for (const auto &test : tests) {
FLAGS_mandatory_auth = test.mandatory_auth;
Expand All @@ -119,9 +122,11 @@ TEST_F(negotiation_manager_test, on_rpc_send_msg)
{RPC_NEGOTIATION_ACK, false, true, true},
{fd::RPC_FD_FAILURE_DETECTOR_PING, false, true, true},
{fd::RPC_FD_FAILURE_DETECTOR_PING_ACK, false, true, true},
{RPC_HTTP_SERVICE, true, true, true},
{RPC_HTTP_SERVICE, false, false, true},
{RPC_HTTP_SERVICE, false, true, false}};
{RPC_HTTP_SERVICE, false, true, true},
{RPC_HTTP_SERVICE_ACK, false, true, true},
{service::RPC_NFS_COPY, true, true, true},
{service::RPC_NFS_COPY, false, false, true},
{service::RPC_NFS_COPY, false, true, false}};

for (const auto &test : tests) {
FLAGS_mandatory_auth = test.mandatory_auth;
Expand Down

0 comments on commit 41aeee5

Please sign in to comment.