This test verifies that an authenticated slave is granted registration by the master.
| 55 | // This test verifies that an authenticated slave is |
| 56 | // granted registration by the master. |
| 57 | TEST_F(CredentialsTest, AuthenticatedSlave) |
| 58 | { |
| 59 | Try<Owned<cluster::Master>> master = StartMaster(); |
| 60 | ASSERT_SOME(master); |
| 61 | |
| 62 | Future<SlaveRegisteredMessage> slaveRegisteredMessage = |
| 63 | FUTURE_PROTOBUF(SlaveRegisteredMessage(), _, _); |
| 64 | |
| 65 | Owned<MasterDetector> detector = master.get()->createDetector(); |
| 66 | Try<Owned<cluster::Slave>> slave = StartSlave(detector.get()); |
| 67 | ASSERT_SOME(slave); |
| 68 | |
| 69 | AWAIT_READY(slaveRegisteredMessage); |
| 70 | ASSERT_NE("", slaveRegisteredMessage->slave_id().value()); |
| 71 | } |
| 72 | |
| 73 | // Using JSON base file for authentication without |
| 74 | // protobuf tools assistance. |
nothing calls this directly
no test coverage detected