diff options
author | Kaloian Manassiev <kaloian.manassiev@mongodb.com> | 2020-01-20 10:03:08 -0500 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-02-15 11:19:48 +0000 |
commit | 611979eb5cafba7bb5369a19948f82453f117c65 (patch) | |
tree | fe04826f378fbd3b05d9f49173f6074726da5c00 /src/mongo/db/auth/sasl_authentication_session_test.cpp | |
parent | 44a107ad428459cad6260490ae98bca442e07385 (diff) | |
download | mongo-611979eb5cafba7bb5369a19948f82453f117c65.tar.gz |
SERVER-44978 Thread-through ServiceContext and ThreadPool to ReadThroughCache
There are no functional changes to this CR, it just instantiates every
usage of ReadThroughCache with a ServiceContext and ThreadPool, which
will be used for making the acquire method asynchronous.
Diffstat (limited to 'src/mongo/db/auth/sasl_authentication_session_test.cpp')
-rw-r--r-- | src/mongo/db/auth/sasl_authentication_session_test.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/mongo/db/auth/sasl_authentication_session_test.cpp b/src/mongo/db/auth/sasl_authentication_session_test.cpp index bdf8edc175d..d83f8455a23 100644 --- a/src/mongo/db/auth/sasl_authentication_session_test.cpp +++ b/src/mongo/db/auth/sasl_authentication_session_test.cpp @@ -55,7 +55,6 @@ #include "mongo/util/password_digest.h" namespace mongo { - namespace { class SaslConversation : public ServiceContextTest { @@ -94,10 +93,10 @@ SaslConversation::SaslConversation(std::string mech) : opCtx(makeOperationContext()), authManagerExternalState(new AuthzManagerExternalStateMock), authManager(new AuthorizationManagerImpl( - std::unique_ptr<AuthzManagerExternalState>(authManagerExternalState), - AuthorizationManagerImpl::InstallMockForTestingOrAuthImpl{})), + getServiceContext(), + std::unique_ptr<AuthzManagerExternalState>(authManagerExternalState))), authSession(authManager->makeAuthorizationSession()), - registry(opCtx->getServiceContext(), {"SCRAM-SHA-1", "SCRAM-SHA-256", "PLAIN"}), + registry(getServiceContext(), {"SCRAM-SHA-1", "SCRAM-SHA-256", "PLAIN"}), mechanism(mech) { AuthorizationManager::set(getServiceContext(), |