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

Function createUnauthorized

src/tests/http_authentication_tests.cpp:281–289  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

279
280
281AuthenticationResult createUnauthorized(const MockAuthenticator& authenticator)
282{
283 AuthenticationResult result;
284 result.unauthorized = Unauthorized(
285 {authenticator.scheme() + " realm=\"" + REALM + "\""},
286 authenticator.scheme() + " unauthorized");
287
288 return result;
289}
290
291
292AuthenticationResult createForbidden(MockAuthenticator& authenticator)

Callers 1

TESTFunction · 0.85

Calls 2

UnauthorizedClass · 0.85
schemeMethod · 0.45

Tested by

no test coverage detected