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

Function TEST_F

src/tests/credentials_tests.cpp:57–71  ·  view source on GitHub ↗

This test verifies that an authenticated slave is granted registration by the master.

Source from the content-addressed store, hash-verified

55// This test verifies that an authenticated slave is
56// granted registration by the master.
57TEST_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.

Callers

nothing calls this directly

Calls 13

SomeFunction · 0.85
from_pathFunction · 0.85
createDetectorMethod · 0.80
principalMethod · 0.80
joinFunction · 0.50
getcwdFunction · 0.50
openFunction · 0.50
writeFunction · 0.50
stringifyFunction · 0.50
closeFunction · 0.50
getMethod · 0.45
valueMethod · 0.45

Tested by

no test coverage detected