summaryrefslogtreecommitdiff
path: root/src/mongo/dbtests/directclienttests.cpp
Commit message (Collapse)AuthorAgeFilesLines
* SERVER-55156 Move capped collection responsibilities to the collection layerGregory Wlodarek2021-03-181-34/+0
|
* SERVER-43273 Add UUID support to count and getIndexSpecs in DBClientVesselina Ratcheva2019-10-071-2/+2
|
* SERVER-43367 unittest framework refactor/fixesBilly Donahue2019-10-021-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Segregate old-style dbtests into their own Suite initialization system: OldStyleSuiteSpecification. This is where the funky deprecated features can live on without interfering with the Suite API. It also gives us a searchable base class to identify them in the future. OldStyleSuite has `setupTests()` and an `add<T>()` that Suite does not have. Suite API can shrink when it doesn't have to support these dbtest adaptor features. Suite only needs non-template `add(name, callback)`. - Add OldStyleSuiteInitializer to some dbtests that were missing it! These didn't use SuiteInstance to register themselves and were incorrect. They would self register, resulting in _allSuites() holding a std::shared_ptr to a static-duration Suite object! - Change `getSuite()` to return `Suite&` instead of `Suite*`. - No more "self-registering" in Suite constructor. Registration must be done as a separate post-construction step. This removes some unusual lifetime management code and is easier to document. Suite::getSuite(name) is the only way to make a Suite, and it does the make_shared and registration calls with a pseudo-private ConstructorEnable idiom. - Suite->run() returns std::unique_ptr<Result> instead of raw `Result*`. It's virtual to support OldStyleSuite behavior. - Suite._ran does nothing. Removed. - Result.cur does nothing. Removed. - Switch to pass-by-value and std::move for most ctor args. - Add explicit on 1-arg ctors. - Get rid of TestHolder. It's just a 2-field struct. - use fmt instead of snprintf - TEST and TEST_F macros: generate TEST_TYPE once. - TEST and TEST_F macros: inline the _agent variable. - Mark _doRun as `override`. - Terminology: replace CASE_NAME with SUITE_NAME. - rename DeathTestImpl -> DeathTestBase - move getDeathTestPattern into the test as a static member function - refactor out some repetition from the comparator decl macros - use if-constexpr and diamond relops to clean up the ComparisonAssertion class. - dbtests: conditionally skip some add<T> calls - further dedup (DEATH_)TEST(_F) macros
* SERVER-41772 Apply clang-format 7.0.1 to the codebaseclang-format-7.0.12019-07-271-4/+1
|
* SERVER-39560 - remove leading blank line on all C++ filesBilly Donahue2019-02-131-4/+0
| | | | | | Remove leading comments that are just stating the filename. Move any file-level comments below the copyright banner. Remove leading blank lines.
* SERVER-30815 Remove the mongodmain libraryAndrew Morrow2018-11-271-1/+0
|
* SERVER-37651 Update header files with new licenseRamon Fernandez2018-10-221-14/+16
|
* SERVER-36094 Make DBClientBase::query() take an NamespaceStringOrUUIDMatthew Russotto2018-08-141-1/+1
|
* SERVER-33605 Mobile SE:Disable capped collections and related testingSulabh Mahajan2018-06-081-0/+5
|
* SERVER-30580 Eliminate UserException and MsgAssertionException typesMathias Stearn2017-08-161-3/+4
| | | | All users were converted to just use AssertionException.
* SERVER-28509 DBClientCursor now uses read commandsMathias Stearn2017-07-261-10/+4
|
* SERVER-29928 invalid_db_name.js should test server not clientMathias Stearn2017-07-131-1/+3
|
* SERVER-27938 Rename all OperationContext variables to opCtxMaria van Keulen2017-03-071-24/+24
| | | | | | This commit is an automated rename of all whole word instances of txn, _txn, and txnPtr to opCtx, _opCtx, and opCtxPtr, respectively in all .cpp and .h files in src/mongo.
* SERVER-27233 fix namespaces to de-dup symbol mongo::myallMatt Cotter2016-12-011-1/+1
|
* SERVER-23971 Clang-Format codeMark Benvenuto2016-05-281-1/+4
|
* SERVER-23779 Replace direct instantiation of OperationContextImpl with ↵Andy Schwerin2016-04-201-9/+16
| | | | | | | cc().makeOperationContext(). Also, make OperationContextImpl's constructor private so that it can only be constructed via a Client.
* Revert "SERVER-23779 Replace direct instantiation of OperationContextImpl ↵Eric Milkie2016-04-191-16/+9
| | | | | | with cc().makeOperationContext()." This reverts commit 0ab34aa7b9c3c48ea6cf17888620fca455284d35.
* SERVER-23779 Replace direct instantiation of OperationContextImpl with ↵Andy Schwerin2016-04-181-9/+16
| | | | | | | cc().makeOperationContext(). Also, make OperationContextImpl's constructor private so that it can only be constructed via a Client.
* SERVER-23434 Make find and getMore return InvalidNamespace on bad namespacesKaloian Manassiev2016-03-301-2/+2
|
* SERVER-18579: Clang-Format - reformat code, no comment reflowMark Benvenuto2015-06-201-152/+153
|
* SERVER-17309 Replace std::auto_ptr<T> with std::unique_ptr<T>Andrew Morrow2015-06-101-3/+3
|
* SERVER-18131 Clean up LastError.Andy Schwerin2015-04-291-6/+3
| | | | | | | | Makes LastError a decoration on Client. Removes behavior that was specific to the dbKillCursors wire protocol message into the processing for that message, and out of last error. Simplifies lifetime of LastError. It always exists on Clients, so there's no checking for its existence, and no passing it around through parts of the networking library.
* Revert "SERVER-18131 Clean up LastError."Andy Schwerin2015-04-231-3/+6
| | | | | This reverts commit 54c25da33ec7270295c8948f6a51376ec4fd278c and commit c952a9396a1843aa45d6afa3c6785dec607de112.
* SERVER-18131 Clean up LastError.Andy Schwerin2015-04-231-6/+3
| | | | | | | | Makes LastError a decoration on Client. Removes behavior that was specific to the dbKillCursors wire protocol message into the processing for that message, and out of last error. Simplifies lifetime of LastError. It always exists on Clients, so there's no checking for its existence, and no passing it around through parts of the networking library.
* SERVER-13256 Remove pch.hAndrew Morrow2015-01-151-3/+0
|
* SERVER-13256 Add usings and qualifications for names from namespace stdAndrew Morrow2015-01-151-0/+3
|
* SERVER-13256 Scope iostream more narrowlyAndrew Morrow2015-01-051-0/+2
|
* SERVER-13256 Prohibit new uses of pch.hAndrew Morrow2015-01-051-0/+3
|
* SERVER-16038 Clean up ns local vars in newRunQuery()Jason Rassi2014-11-171-1/+1
|
* SERVER-15707 Fix leaks in C++ unit test frameworkAndrew Morrow2014-10-271-1/+3
|
* SERVER-15641 Fix memory leaks in C++ dbtestsAndrew Morrow2014-10-151-3/+10
|
* SERVER-14668 split dbdirectclient out of instance.cppHari Khalsa2014-09-111-1/+1
|
* SERVER-13961 Add OperationContext argument to Client::ContextKaloian Manassiev2014-07-011-8/+24
| | | | | | | Time tracking and database access in Client::Context require access to the OperationContext. Adding it as argument. This is in preparation for removing LockState from Client.
* Revert "SERVER-13961 Add OperationContext argument to Client::Context"Tyler Brock2014-06-301-24/+8
| | | | This reverts commit e1f5a39b1b625d04752be13f39c774e579b64cd8.
* SERVER-13961 Add OperationContext argument to Client::ContextKaloian Manassiev2014-06-281-8/+24
| | | | | | | Time tracking and database access in Client::Context require access to the OperationContext. Adding it as argument. This is in preparation for removing LockState from Client.
* Revert "SERVER-13961 Add OperationContext argument to Client::Context"Kaloian Manassiev2014-06-281-24/+8
| | | | This reverts commit 52edab726185cbba1401cb46de221fb3d1cb0408.
* SERVER-13961 Add OperationContext argument to Client::ContextKaloian Manassiev2014-06-271-8/+24
| | | | | | | Time tracking and database access in Client::Context require access to the OperationContext. Adding it as argument. This is in preparation for removing LockState from Client.
* SERVER-13635 SERVER-1153: can choose heap1 at startup, but doesn't remotely ↵Eliot Horowitz2014-06-191-29/+29
| | | | work yet
* SERVER-8886 Final set of license exceptions for OpenSSLIan Whalen2013-12-101-0/+12
|
* Clean up #includes to conform with coding standardDan Pasette2013-07-241-7/+8
|
* SERVER-10179 Fix test failure due to SERVER-10134Mathias Stearn2013-07-111-1/+7
| | | | We now report getMore errors in the same format as query errors.
* fix direct test - make sure memory is owned by the right thingEliot Horowitz2012-07-141-1/+2
|
* SERVER-5926 Segfault when procesing a command with empty namespaceRandolph Tan2012-05-271-0/+54
| | | | Added proper namespace checking before processing requests on mongod. Also added some fasserts on DBLocks
* Clean some query related includes.Aaron2012-04-061-2/+0
|
* replace assert with verify SERVER-1259Eliot Horowitz2012-03-261-2/+2
|
* bulk move of code to src/ SERVER-4551Eliot Horowitz2011-12-241-0/+103