This test verifies that an unauthenticated framework is denied registration by the master.
| 57 | // This test verifies that an unauthenticated framework is |
| 58 | // denied registration by the master. |
| 59 | TEST_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 |
nothing calls this directly
no test coverage detected