diff options
author | Andy Schwerin <schwerin@mongodb.com> | 2015-04-06 10:48:36 -0400 |
---|---|---|
committer | Andy Schwerin <schwerin@mongodb.com> | 2015-04-06 18:20:14 -0400 |
commit | 7ea3fc90c6c1f175da1e76ff79b1e6ae09377141 (patch) | |
tree | bd2f3f246c48a3a88578c3195432cb30fc3bfff2 /src/mongo/db/auth/authorization_session_test.cpp | |
parent | 9e2cc1588f25f81983de48f2c69130203e325175 (diff) | |
download | mongo-7ea3fc90c6c1f175da1e76ff79b1e6ae09377141.tar.gz |
SERVER-17817 When setting up ClientBasic, get AuthorizationSession object from AuthorizationManager.
Diffstat (limited to 'src/mongo/db/auth/authorization_session_test.cpp')
-rw-r--r-- | src/mongo/db/auth/authorization_session_test.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mongo/db/auth/authorization_session_test.cpp b/src/mongo/db/auth/authorization_session_test.cpp index da878ce324c..5a266f33483 100644 --- a/src/mongo/db/auth/authorization_session_test.cpp +++ b/src/mongo/db/auth/authorization_session_test.cpp @@ -87,7 +87,8 @@ namespace { managerState->setAuthzVersion(AuthorizationManager::schemaVersion26Final); authzManager.reset(new AuthorizationManager(managerState)); sessionState = new AuthzSessionExternalStateMock(authzManager.get()); - authzSession.reset(new AuthorizationSession(sessionState)); + authzSession.reset(new AuthorizationSession( + std::unique_ptr<AuthzSessionExternalState>(sessionState))); authzManager->setAuthEnabled(true); } }; |