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

Method ping

src/tests/containerizer/capabilities_tests.cpp:55–76  ·  view source on GitHub ↗

Launch 'ping' using the given capabilities and user.

Source from the content-addressed store, hash-verified

53public:
54 // Launch 'ping' using the given capabilities and user.
55 Try<Subprocess> ping(
56 const set<Capability>& capabilities,
57 const Option<string>& user = None())
58 {
59 CapabilitiesTestHelper helper;
60
61 helper.flags.user = user;
62 helper.flags.capabilities = capabilities::convert(capabilities);
63
64 vector<string> argv = {
65 "test-helper",
66 CapabilitiesTestHelper::NAME
67 };
68
69 return subprocess(
70 getTestHelperPath("test-helper"),
71 argv,
72 Subprocess::FD(STDIN_FILENO),
73 Subprocess::FD(STDOUT_FILENO),
74 Subprocess::FD(STDERR_FILENO),
75 &helper.flags);
76 }
77};
78
79

Callers

nothing calls this directly

Calls 4

NoneClass · 0.85
getTestHelperPathFunction · 0.85
convertFunction · 0.50
subprocessFunction · 0.50

Tested by

no test coverage detected