MCPcopy Create free account
hub / github.com/apache/mesos / TEST_F

Function TEST_F

src/tests/authentication_tests.cpp:59–81  ·  view source on GitHub ↗

This test verifies that an unauthenticated framework is denied registration by the master.

Source from the content-addressed store, hash-verified

57// This test verifies that an unauthenticated framework is
58// denied registration by the master.
59TEST_F(AuthenticationTest, UnauthenticatedFramework)
60{
61 Clock::pause();
62
63 Try<Owned<cluster::Master>> master = StartMaster();
64 ASSERT_SOME(master);
65
66 MockScheduler sched;
67 MesosSchedulerDriver driver(
68 &sched, DEFAULT_FRAMEWORK_INFO, master.get()->pid);
69
70 Future<Nothing> error;
71 EXPECT_CALL(sched, error(&driver, _))
72 .WillOnce(FutureSatisfy(&error));
73
74 driver.start();
75
76 // Scheduler should get error message from the master.
77 AWAIT_READY(error);
78
79 driver.stop();
80 driver.join();
81}
82
83
84// This test verifies that an unauthenticated slave is

Callers

nothing calls this directly

Calls 15

errorFunction · 0.85
FutureSatisfyFunction · 0.85
NoneClass · 0.85
SecondsClass · 0.85
MinutesClass · 0.85
MillisecondsClass · 0.85
DaysClass · 0.85
createDetectorMethod · 0.80
mockMethod · 0.80
unmocked_authenticateMethod · 0.80
MergeFromMethod · 0.80
startMethod · 0.65

Tested by

no test coverage detected