[prev in list] [next in list] [prev in thread] [next in thread] 

List:       mesos-commits
Subject:    [1/2] mesos git commit: Cleaned up usage of `CreateSlaveFlags()` in a test file.
From:       tillt () apache ! org
Date:       2015-11-26 22:04:31
Message-ID: 497bd019866844b1b1c0f0591ff3675a () git ! apache ! org
[Download RAW message or body]

Repository: mesos
Updated Branches:
  refs/heads/master e222b51e0 -> 1a7be1f1d


Cleaned up usage of `CreateSlaveFlags()` in a test file.

Review: https://reviews.apache.org/api/review-requests/40654/


Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/b37baf0d
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/b37baf0d
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/b37baf0d

Branch: refs/heads/master
Commit: b37baf0d77c451b5f4c1d92b2a56f070699a6352
Parents: e222b51
Author: Neil Conway <neil.conway@gmail.com>
Authored: Thu Nov 26 22:57:58 2015 +0100
Committer: Till Toenshoff <toenshoff@me.com>
Committed: Thu Nov 26 22:57:59 2015 +0100

----------------------------------------------------------------------
 src/tests/authentication_tests.cpp | 12 ++++--------
 1 file changed, 4 insertions(+), 8 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mesos/blob/b37baf0d/src/tests/authentication_tests.cpp
----------------------------------------------------------------------
diff --git a/src/tests/authentication_tests.cpp b/src/tests/authentication_tests.cpp
index 98a872e..b102b37 100644
--- a/src/tests/authentication_tests.cpp
+++ b/src/tests/authentication_tests.cpp
@@ -308,8 +308,7 @@ TEST_F(AuthenticationTest, AuthenticatedSlave)
     FUTURE_PROTOBUF(SlaveRegisteredMessage(), _, _);
 
   // Start the slave with credentials.
-  slave::Flags slaveFlags = CreateSlaveFlags();
-  Try<PID<Slave> > slave = StartSlave(slaveFlags);
+  Try<PID<Slave> > slave = StartSlave();
   ASSERT_SOME(slave);
 
   // Slave should be able to get registered.
@@ -370,8 +369,7 @@ TEST_F(AuthenticationTest, RetrySlaveAuthentication)
   Future<AuthenticateMessage> authenticateMessage =
     DROP_PROTOBUF(AuthenticateMessage(), _, _);
 
-  slave::Flags slaveFlags = CreateSlaveFlags();
-  Try<PID<Slave> > slave = StartSlave(slaveFlags);
+  Try<PID<Slave> > slave = StartSlave();
   ASSERT_SOME(slave);
 
   AWAIT_READY(authenticateMessage);
@@ -451,8 +449,7 @@ TEST_F(AuthenticationTest, DropIntermediateSASLMessageForSlave)
   Future<AuthenticationStepMessage> authenticationStepMessage =
     DROP_PROTOBUF(AuthenticationStepMessage(), _, _);
 
-  slave::Flags slaveFlags = CreateSlaveFlags();
-  Try<PID<Slave> > slave = StartSlave(slaveFlags);
+  Try<PID<Slave> > slave = StartSlave();
   ASSERT_SOME(slave);
 
   AWAIT_READY(authenticationStepMessage);
@@ -544,8 +541,7 @@ TEST_F(AuthenticationTest, DropFinalSASLMessageForSlave)
   Future<AuthenticationCompletedMessage> authenticationCompletedMessage =
     DROP_PROTOBUF(AuthenticationCompletedMessage(), _, _);
 
-  slave::Flags slaveFlags = CreateSlaveFlags();
-  Try<PID<Slave> > slave = StartSlave(slaveFlags);
+  Try<PID<Slave> > slave = StartSlave();
   ASSERT_SOME(slave);
 
   AWAIT_READY(authenticationCompletedMessage);

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic