Details
-
Improvement
-
Resolution: Won't Fix
-
Major - P3
-
None
-
3.1.6
Description
onFindCommand([](const RemoteCommandRequest& request)
|
-> StatusWith<vector<BSONObj>> {
|
ASSERT_EQUALS(dummyHost, request.target);
|
ASSERT_EQUALS("config", request.dbname);
|
|
|
const auto& findCmd = request.cmdObj;
|
ASSERT_EQUALS("lockpings", findCmd["find"].str());
|
ASSERT_EQUALS(BSON("_id"
|
<< "test"),
|
findCmd["filter"].Obj());
|
ASSERT_EQUALS(1, findCmd["limit"].numberLong());
|
checkReadConcern(findCmd);
|
|
|
BSONObj pingDoc(fromjson(R"({
|
_id: "test",
|
ping: { $date: "2015-05-26T13:06:27.293Z" }
|
})"));
|
|
|
std::vector<BSONObj> result;
|
result.push_back(pingDoc);
|
|
|
return result;
|
});
|