summaryrefslogtreecommitdiff
path: root/src/mongo/shell/shell_utils.cpp
AgeCommit message (Collapse)Author
2024-08-30SERVER-94229 verify input to _resultSetsEqualUnordered (#26641)Binh Vo
GitOrigin-RevId: b93b79b59c3642e0daa421300d82bb153dd86987
2024-08-28SERVER-94007 Add option to normalize null and undefined in query result ↵Lynne Wang
comparator (#26525) GitOrigin-RevId: 87312df9d6051d276bfbd4dacec6ae8216779fd7
2024-08-27SERVER-93678: Add a shell utility function to compare strings given a ↵Projjal Chanda
collation object (#26234) GitOrigin-RevId: 6480e21ac48c379052ece62f0efb9e60771cb2ea
2024-08-23SERVER-93655 Extend query result comparator in shell_utils for QueryTester ↵Lynne Wang
normalization (#26211) GitOrigin-RevId: ef5f1e739f5e7cdf29351ed361e7a2ba89874a2a
2024-08-20SERVER-81339 Convert ReplSetTest and ShardingTest to modules (#26332)Matt Broadstone
GitOrigin-RevId: 744aa110a53786b23c62ff53f87a1418b5991e8d
2024-07-11SERVER-91977 Prevent usage of invalid identifiers in _buildBsonObj(). (#24491)Santiago Roche
GitOrigin-RevId: 483b5f4beca8520f00a23ca777102721a589a0a2
2024-07-01SERVER-91932 Create query result comparator as C++ shell helper (#24082)Matthew Boros
GitOrigin-RevId: ef542ebbf50acd635ad82f1b83b3010f849dc9ec
2024-01-20SERVER-84742 Refactor the ValidatedTenancyScope class to become a POD classMathis Bessa
GitOrigin-RevId: 05dbdd076618c63e67e953bddac2b6e8e6408665
2023-11-26SERVER-81512 Removed using namespace fmt::literals from global namespaceVinod Kumar
2023-11-21Revert "SERVER-81512 Removed using namespace fmt::literals from global ↵auto-revert-processor
namespace" This reverts commit 3f63faa6c3787857f3c0eeeecc286e96265ca758.
2023-11-21SERVER-81512 Removed using namespace fmt::literals from global namespaceVinod Kumar
2023-11-09SERVER-82961 Use atomic bool for shellGlobalParams::nokillop to avoid data raceYoonsoo Kim
2023-10-17SERVER-81544 Track protocol=atlasproxy on client connectionsMathis Bessa
2023-09-23SERVER-81059 bulk-revert of include of boost iif.hppBilly Donahue
2023-08-31SERVER-80394 Improve securityToken handlingSara Golemon
2023-08-25SERVER-80377 Use hashed jsTestName in multitenancy suitesMatt Broadstone
2023-08-25Revert "SERVER-80377 Use hashed jsTestName in multitenancy suites"auto-revert-processor
This reverts commit c910ba4efc8797fb6c05aabdbb0220f75c603726.
2023-08-24SERVER-80377 Use hashed jsTestName in multitenancy suitesMatt Broadstone
2023-07-01SERVER-77049 SERVER-77050 IWYU automated changes up to 1.0Daniel Moody
2023-05-19SERVER-75879 Add validation to prevent duplicate _id fields from updateChi-I Huang
2023-04-26SERVER-74493 Make DatabaseName constructors privatemathisbessamdb
2023-01-23SERVER-72948 Change DBClient runCommand function to use DatabaseName objectSophia Tan
2023-01-20SERVER-72935 switch c stdlib headers to cpp compat stdlib headersDaniel Moody
2023-01-04SERVER-72418 Add new benchRun() variant to mongo shell for PERF-3672Kevin Cherkauer
2022-12-23SERVER-70957: Refactor ProgramRunner to support launching programs from C++ codeVarun Ravichandran
2022-11-24SERVER-70048 Improve developer experience with golden testsMilena Ivanova
2022-09-16SERVER-69580 add performance-faster-string-find check to clang-tidyTrevor Guidry
2022-08-22SERVER-68233 MongoShell numberDecimalsAlmostEqual(NumberDecimal(0), ↵Denis Grebennicov
NumberDecimal(0)) returns false
2022-08-17SERVER-68233 MongoShell numberDecimalsAlmostEqual(NumberDecimal(0), ↵Denis Grebennicov
NumberDecimal(0)) returns false
2022-08-17SERVER-67415 Create golden-data JS suitesDavid Percy
Adds two new suites: query_golden_classic and query_golden_cqf, which use the golden-data test framework (docs/golden_data_test_framework.md). These suites diff the expected and actual output instead of using assert.eq and similar functions. This change includes some refactoring of the golden-test classes to avoid pulling the unittest library into the mongo shell.
2022-06-15SERVER-67148 Refactor ValidatedTenantId into ValidatedSecurityTokenSara Golemon
2022-05-26SERVER-66784 numberDecimalsAlmostEqual shell helper now works for negative ↵Davis Haupt
numbers
2022-05-06SERVER-66203 move MONGO_LOGV2_DEFAULT_COMPONENT defs below includesBilly Donahue
2022-03-14SERVER-64226 Add shell helper to check equality up to a specified number of ↵Davis Haupt
digits for NumberDecimal
2022-02-07SERVER-63108 Rename Versioned API to Stable APIA. Jesse Jiryu Davis
2022-01-30SERVER-62902 Fix type conversion issue in JSSRand.Rishab Joshi
2022-01-29SERVER-63025 Unify security token placeholder implementationsSara Golemon
2022-01-13SERVER-27209 Eliminate dangerous BSONElement string extraction methodsMatt Kneiser
- Fix: Change return type of BSONObj::getStringField to include size (StringData vs. char*). A char* only contains the data with an ending NULL termination. Whereas a StringData contains data + size so caller knows how to interpret data if there are embedded NULLs. - Cleanup: Remove old tag - CachedSizeTag - that disambiguated BSONElement ctors. A dangling reference to 'maxLen' in a comment led me to this historical issue. $ git log -S'maxLen' -- src/mongo/bson/bsonelement.h commit 0d38ef5 Author: Mathias Stearn mathias@10gen.com Date: Tue Dec 19 14:23:08 2017 -0500 SERVER-32302 Compute BSONElement sizes eagerly - Test: Add tests for NULL bytes being returned by getStringField - $ ninja -j400 +bson_obj_test - Cleanup: Move BSONElement::valuestr() from public to private - Cleanup: Remove BSONElement::valuestrsafe() - Cleanup: Remove all external callers of valuestr/valuestrsafe and cleanup their callsites with better alternatives. - Cleanup: Make multi-line BSONElement & BSONObj public API comments conform to style guidelines - Nit: Fix spelling in a comment
2021-12-07SERVER-61615 Parse authenticated user from security token and add to ↵Sara Golemon
authorization session
2021-11-11SERVER-61387 Make sure setRandomSeed() prints the exact value it choseDavid Percy
2021-08-14SERVER-58670 Modernize DBClientBase query interface to avoid ↵Irina Yatsenko
OP_QUERY-derived characteristics
2021-08-02SERVER-58703 Change internal client to only support the OP_MSG RPC protocolYoonsoo Kim
2021-07-05SERVER-57605 Expose Decimal128 equality comparison helper to shellArun Banala
2021-07-01SERVER-57388 Remove readMode/writeMode/rpcProtocols/useLegacyWriteOps shell ↵Yoonsoo Kim
command-line parameters
2021-01-07SERVER-53423: Make ConnectString::connect return a status instead of setting ↵Andrew Shuvalov
error message
2021-01-07Revert "SERVER-53423: Make ConnectString::connect return a status instead of ↵Pavi Vetriselvan
setting error message" This reverts commit ad1169d34cbd457a4d0637230e615bdf1d177531.
2021-01-07SERVER-53423: Make ConnectString::connect return a status instead of setting ↵Andrew Shuvalov
error message
2020-10-13SERVER-50917 util/ctype.h to replace <cctype> & <ctype.h> funcsBilly Donahue
2020-09-25SERVER-51084 tweak range loop variable types to fix xcode buildBilly Donahue
2020-08-20SERVER-49380 Add API params to mongo shellA. Jesse Jiryu Davis