diff options
author | Sara Golemon <sara.golemon@mongodb.com> | 2018-01-12 12:07:38 -0500 |
---|---|---|
committer | Sara Golemon <sara.golemon@mongodb.com> | 2018-01-25 16:00:58 -0500 |
commit | 7b182343044d9fc724b5308e6418687d9b589605 (patch) | |
tree | 481ab3396ab6075269967874cd981cf65faa615b /src/mongo/db/auth | |
parent | 5fad9e0f17e5987d5b523327862653f982108723 (diff) | |
download | mongo-7b182343044d9fc724b5308e6418687d9b589605.tar.gz |
SERVER-32835 Refactor SaslSCRAMSHA1ClientConversation to be block independent
Diffstat (limited to 'src/mongo/db/auth')
-rw-r--r-- | src/mongo/db/auth/sasl_scramsha1_test.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/mongo/db/auth/sasl_scramsha1_test.cpp b/src/mongo/db/auth/sasl_scramsha1_test.cpp index d2c972798bf..d6c7661a0c7 100644 --- a/src/mongo/db/auth/sasl_scramsha1_test.cpp +++ b/src/mongo/db/auth/sasl_scramsha1_test.cpp @@ -257,7 +257,7 @@ TEST_F(SCRAMSHA1Fixture, testServerStep1DoesNotIncludeNonceFromClientStep1) { }); ASSERT_EQ(SCRAMStepsResult(SaslTestState(SaslTestState::kClient, 2), Status(ErrorCodes::BadValue, - "Server SCRAM-SHA-1 nonce does not match client nonce: r=")), + "Server SCRAM nonce does not match client nonce: r=")), runSteps(saslServerSession.get(), saslClientSession.get(), mutator)); } @@ -309,6 +309,7 @@ TEST_F(SCRAMSHA1Fixture, testClientStep2GivesBadProof) { ASSERT_EQ(SCRAMStepsResult(SaslTestState(SaslTestState::kServer, 2), Status(ErrorCodes::AuthenticationFailed, "SCRAM-SHA-1 authentication failed, storedKey mismatch")), + runSteps(saslServerSession.get(), saslClientSession.get(), mutator)); } @@ -339,13 +340,12 @@ TEST_F(SCRAMSHA1Fixture, testServerStep2GivesBadVerifier) { auto result = runSteps(saslServerSession.get(), saslClientSession.get(), mutator); - ASSERT_EQ( - SCRAMStepsResult( - SaslTestState(SaslTestState::kClient, 3), - Status(ErrorCodes::BadValue, - str::stream() << "Client failed to verify SCRAM-SHA-1 ServerSignature, received " - << encodedVerifier)), - result); + ASSERT_EQ(SCRAMStepsResult( + SaslTestState(SaslTestState::kClient, 3), + Status(ErrorCodes::BadValue, + str::stream() << "Client failed to verify SCRAM ServerSignature, received " + << encodedVerifier)), + result); } |