summaryrefslogtreecommitdiff
path: root/src/mongo/client/authenticate_test.cpp
diff options
context:
space:
mode:
authorMark Benvenuto <mark.benvenuto@mongodb.com>2016-05-28 17:55:12 -0400
committerMark Benvenuto <mark.benvenuto@mongodb.com>2016-05-28 17:55:12 -0400
commit6dcdd23dd37ef12c87e71cf59ef01cd82432efe0 (patch)
treec8cfb5acb62c80f375bc37e7d4350382deea6a37 /src/mongo/client/authenticate_test.cpp
parentd4ac5673ea3f6cef4ce9dbcec90e31813997a528 (diff)
downloadmongo-6dcdd23dd37ef12c87e71cf59ef01cd82432efe0.tar.gz
SERVER-23971 Clang-Format code
Diffstat (limited to 'src/mongo/client/authenticate_test.cpp')
-rw-r--r--src/mongo/client/authenticate_test.cpp38
1 files changed, 21 insertions, 17 deletions
diff --git a/src/mongo/client/authenticate_test.cpp b/src/mongo/client/authenticate_test.cpp
index 0de2a1e9670..adca0ec582b 100644
--- a/src/mongo/client/authenticate_test.cpp
+++ b/src/mongo/client/authenticate_test.cpp
@@ -63,10 +63,10 @@ public:
_nonce("7ca422a24f326f2a"),
_requests(),
_responses() {
- _runCommandCallback =
- [this](RemoteCommandRequest request, RunCommandResultHandler handler) {
- runCommand(std::move(request), handler);
- };
+ _runCommandCallback = [this](RemoteCommandRequest request,
+ RunCommandResultHandler handler) {
+ runCommand(std::move(request), handler);
+ };
// create our digest
md5digest d;
@@ -130,7 +130,11 @@ public:
<< "MONGODB-CR"
<< "db"
<< "admin"
- << "user" << _username << "pwd" << _password << "digest"
+ << "user"
+ << _username
+ << "pwd"
+ << _password
+ << "digest"
<< "true");
}
@@ -140,7 +144,8 @@ public:
pushRequest("$external",
BSON("authenticate" << 1 << "mechanism"
<< "MONGODB-X509"
- << "user" << _username));
+ << "user"
+ << _username));
// 2. Client receives 'ok'
pushResponse(BSON("ok" << 1));
@@ -150,7 +155,8 @@ public:
<< "MONGODB-X509"
<< "db"
<< "$external"
- << "user" << _username);
+ << "user"
+ << _username);
}
@@ -178,11 +184,10 @@ TEST_F(AuthClientTest, MongoCR) {
TEST_F(AuthClientTest, asyncMongoCR) {
auto params = loadMongoCRConversation();
- auth::authenticateClient(std::move(params),
- "",
- "",
- _runCommandCallback,
- [this](auth::AuthResponse response) { ASSERT(response.isOK()); });
+ auth::authenticateClient(
+ std::move(params), "", "", _runCommandCallback, [this](auth::AuthResponse response) {
+ ASSERT(response.isOK());
+ });
}
#ifdef MONGO_CONFIG_SSL
@@ -193,11 +198,10 @@ TEST_F(AuthClientTest, X509) {
TEST_F(AuthClientTest, asyncX509) {
auto params = loadX509Conversation();
- auth::authenticateClient(std::move(params),
- "",
- _username,
- _runCommandCallback,
- [this](auth::AuthResponse response) { ASSERT(response.isOK()); });
+ auth::authenticateClient(
+ std::move(params), "", _username, _runCommandCallback, [this](auth::AuthResponse response) {
+ ASSERT(response.isOK());
+ });
}
#endif