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

Function createCombinedForbidden

src/tests/http_authentication_tests.cpp:323–338  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

321
322
323AuthenticationResult createCombinedForbidden(
324 const vector<MockAuthenticator>& authenticators)
325{
326 AuthenticationResult result;
327 vector<string> bodies;
328
329 foreach (const MockAuthenticator& authenticator, authenticators) {
330 bodies.push_back(
331 "\"" + authenticator.scheme() + "\" authenticator returned:\n" +
332 authenticator.scheme() + " forbidden");
333 }
334
335 result.forbidden = Forbidden(strings::join("\n\n", bodies));
336
337 return result;
338}
339
340
341// Verifies the functionality of the `CombinedAuthenticator`.

Callers 1

TESTFunction · 0.85

Calls 2

ForbiddenClass · 0.85
joinFunction · 0.50

Tested by

no test coverage detected