Ensures that when there is no authenticator for a realm, requests are not authenticated (i.e. the principal is None).
| 1961 | // Ensures that when there is no authenticator for a realm, |
| 1962 | // requests are not authenticated (i.e. the principal is None). |
| 1963 | TEST_F(HttpAuthenticationTest, NoAuthenticator) |
| 1964 | { |
| 1965 | Http http; |
| 1966 | |
| 1967 | EXPECT_CALL(*http.process, authenticated(_, Option<Principal>::none())) |
| 1968 | .WillOnce(Return(http::OK())); |
| 1969 | |
| 1970 | Future<http::Response> response = |
| 1971 | http::get(http.process->self(), "authenticated"); |
| 1972 | |
| 1973 | AWAIT_EXPECT_RESPONSE_STATUS_EQ(http::OK().status, response); |
| 1974 | } |
| 1975 | |
| 1976 | |
| 1977 | // Tests that an authentication Unauthorized result is exposed correctly. |
nothing calls this directly
no test coverage detected