| 53 | { |
| 54 | protected: |
| 55 | void setBasicHttpAuthenticator( |
| 56 | const std::string& realm, |
| 57 | const Credentials& credentials) |
| 58 | { |
| 59 | Try<process::http::authentication::Authenticator*> authenticator = |
| 60 | BasicAuthenticatorFactory::create(realm, credentials); |
| 61 | |
| 62 | ASSERT_SOME(authenticator); |
| 63 | |
| 64 | // Add this realm to the set of realms which will be unset during teardown. |
| 65 | realms.insert(realm); |
| 66 | |
| 67 | // Pass ownership of the authenticator to libprocess. |
| 68 | AWAIT_READY(setAuthenticator( |
| 69 | realm, |
| 70 | Owned<process::http::authentication::Authenticator>( |
| 71 | authenticator.get()))); |
| 72 | } |
| 73 | |
| 74 | void TearDown() override |
| 75 | { |
nothing calls this directly
no test coverage detected