summaryrefslogtreecommitdiff
path: root/src/mongo/db/auth/sasl_authentication_session_test.cpp
diff options
context:
space:
mode:
authorJonathan Reams <jbreams@mongodb.com>2018-11-05 18:22:59 -0500
committerJonathan Reams <jbreams@mongodb.com>2018-11-14 16:33:12 -0500
commita8bfcc13011c5e859a10e56ce882a0d53a0a2031 (patch)
tree576413908983b0c8d3fefa644c55b414eea7409a /src/mongo/db/auth/sasl_authentication_session_test.cpp
parenta6a0ca1ae81b34aab14a9c9a2a3d4a6ec7be66ba (diff)
downloadmongo-a8bfcc13011c5e859a10e56ce882a0d53a0a2031.tar.gz
SERVER-32978 Advertise SCRAM-SHA-256 authentication for the internal user
Diffstat (limited to 'src/mongo/db/auth/sasl_authentication_session_test.cpp')
-rw-r--r--src/mongo/db/auth/sasl_authentication_session_test.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/mongo/db/auth/sasl_authentication_session_test.cpp b/src/mongo/db/auth/sasl_authentication_session_test.cpp
index 2724f1833d9..f4812d09bb3 100644
--- a/src/mongo/db/auth/sasl_authentication_session_test.cpp
+++ b/src/mongo/db/auth/sasl_authentication_session_test.cpp
@@ -95,6 +95,7 @@ SaslConversation::SaslConversation(std::string mech)
std::unique_ptr<AuthzManagerExternalState>(authManagerExternalState),
AuthorizationManagerImpl::InstallMockForTestingOrAuthImpl{})),
authSession(authManager->makeAuthorizationSession()),
+ registry({"SCRAM-SHA-1", "SCRAM-SHA-256", "PLAIN"}),
mechanism(mech) {
AuthorizationManager::set(getServiceContext(),
@@ -273,12 +274,6 @@ TEST_F(SaslIllegalConversation, IllegalClientMechanism) {
ASSERT(!client->initialize().isOK() || !client->step(serverMessage, &clientMessage).isOK());
}
-TEST_F(SaslIllegalConversation, IllegalServerMechanism) {
- SASLServerMechanismRegistry registry;
- auto swServer = registry.getServerMechanism("FAKE", "test");
- ASSERT_NOT_OK(swServer.getStatus());
-}
-
} // namespace
} // namespace mongo