Commit Graph

186 Commits

Author SHA1 Message Date
Spencer Jackson
21bcf6b127 SERVER-21724 Let backup role read system.profile 2015-12-15 15:59:58 -05:00
Kaloian Manassiev
3ed6635a5f SERVER-21050 Cleanup ReplSetTest
This is just a cleanup work to hide some of the private state of
ReplSetTest so it is easier to encapsulate and add new logic. Also enables
strict mode.
2015-12-08 13:05:00 -05:00
Jonathan Reams
338f764be0 SERVER-6102 Deserialize BSON undefined as JS undefined 2015-11-11 11:12:17 -05:00
Kaloian Manassiev
3db9d1338c SERVER-21009 Remove usages of the multi-argument ShardingTest constructor
No functional changes, just converting everything to use the JSON-based
constructor.

Also moves some sharding-specific tests out of noPassthroughWithMongod and
under the sharding suite.
2015-10-23 09:50:35 -04:00
Dan Pasette
2a86489d6f SERVER-20759 dumprestore.js chooses primary port for mongorestore 2015-10-05 14:12:46 -04:00
matt dannenberg
d789bca4c9 SERVER-18498 New replica set configurations have protocolVersion=1 by default
This re-adds Siyuan's work from commits 19d2885ec5 and 362aac3937.
2015-10-01 08:00:10 -04:00
Jason Rassi
19d2885ec5 Revert "SERVER-18498 New replica set configurations have protocolVersion=1 by default"
This reverts commit 2c1facf471.
2015-09-24 11:16:32 -04:00
Siyuan Zhou
2c1facf471 SERVER-18498 New replica set configurations have protocolVersion=1 by default 2015-09-23 14:50:56 -04:00
Dan Pasette
895db35390 SERVER-17425 Disallow creation of v0 indexes 2015-09-22 12:23:43 -04:00
Charlie Swanson
c15f4bb96d SERVER-18272 Update jstests to use allocatePort() instead of hard coding ports 2015-09-09 13:14:48 -04:00
Merry Mou
0c695aa1e8 SERVER-13647 give restore privileges to root 2015-08-21 16:06:42 -04:00
Gabriel Russell
223b4e28b6 TOOLS-833 disable unreliable dump to stdout test
o Its actually not ok to run any programs with runMongoProgram
  that write binary data to standard output
2015-07-23 15:25:36 -04:00
Scott Hernandez
4d5b80ab7f SERVER-18982: do inserts as inserts in replication 2015-07-20 17:10:13 -04:00
Randolph Tan
280fbae904 SERVER-18044 Make sharding test explicitly set primary shards for databases 2015-05-15 10:11:31 -04:00
mike o'brien
3140bfa914 SERVER-18239 dumpauth.js should use correct db/collection names
Signed-off-by: Ernie Hershey <ernie.hershey@10gen.com>
2015-04-28 13:22:20 -04:00
Spencer T Brody
7c1ad90880 SERVER-17971 Remove separateConfig option from ShardingTest and make its behavior the default 2015-04-14 13:53:47 -04:00
Spencer T Brody
6ccb82c987 SERVER-17450 Standardize on a single way to start mongod in tests 2015-04-06 18:19:21 -04:00
Benety Goh
a15dbb65ca SERVER-17634 do not apply replicated insert operations on missing collections 2015-03-18 11:02:53 -04:00
matt dannenberg
0524c8beca make tool_replset.js more resilient against certain failures 2015-02-26 10:29:19 -05:00
Mathias Stearn
ae18bbec33 SERVER-17312 collmod command now handles parsing of all arguments
For the two currently supported engine-specific options, the collmod command
will handle parsing the arguments and tell the CollectionCatalogEntry to
update it's flags option.

This removes the ability of storage engines to have custom options that can
be changed after the collection is created. There were issues related to
argument validation and replication of changes (including for initial sync).
A correct solution will be designed as SERVER-17320.
2015-02-19 19:55:44 -05:00
alabid
5f3fa2e775 SERVER-16893 Disallow creation of v0 indexes with non-mmapv1 storage engines
Also moved jstests/tool/dumprestore6.js to jstests/mmapv1/dumprestore6.js
since this JS test attempts to restore a v0 index

Closes #914

Signed-off-by: Benety Goh <benety@mongodb.com>
2015-01-23 17:03:07 -05:00
Jason Rassi
49c92c4d0a SERVER-16522 Update remaining jstests to use getCollectionInfos() 2014-12-23 22:59:32 -05:00
Gabriel Russell
b896f4ca68 TOOLS-488 Tools exit 1 on error
Closes #890

Signed-off-by: Benety Goh <benety@mongodb.com>
2014-12-23 16:15:28 -05:00
Kyle Erf
6478e5ced5 SERVER-16235 fix dumprestore8.js on wiredtiger
Signed-off-by: Mark Benvenuto <mark.benvenuto@mongodb.com>
2014-12-17 09:06:58 -05:00
Jason Rassi
0aede468dc SERVER-16518 listCollections response changed to cursor object form
As a temporary compatibility measure, the legacy behavior is preserved
if the "cursor" option is not sent with the command.  This
compatibility layer will be removed as part of work for the parent
ticket.
2014-12-16 14:31:58 -05:00
Mark Benvenuto
c052295f3e SERVER-16186: newCollectionsUsePowerOf2Sizes should warn users it no longer works 2014-12-15 17:20:39 -05:00
mike o'brien
8fc0c842c0 TOOLS-492 stat1.js should explicitly specify --authenticationDatabase
Closes #880

Signed-off-by: Matt Kangas <matt.kangas@mongodb.com>
2014-12-12 17:09:29 -05:00
Sam Helman
0603b59fd8 TOOLS-494: fix restorewithauth.js and TOOLS-497: fix dumprestore_auth.js 2014-12-11 10:41:20 -05:00
Matt Kangas
ae6df7a0b1 TOOLS-450 Revert restorewithauth.js
This partially reverts commit bf834456c3
2014-12-10 22:13:01 -05:00
Sam Helman
bf834456c3 TOOLS-450 some dumprestore js tests query system.indexes or system.namespaces directly
Closes #875

Signed-off-by: Benety Goh <benety@mongodb.com>
2014-12-10 16:18:57 -05:00
mike o'brien
609a1492d2 TOOLS-327 fix tests relying on --w to use --writeConcern 2014-11-21 20:52:32 -05:00
Adam Midvidy
491a9728d3 SERVER-15979 remove even more mmap_v1isms
Closes #866

Signed-off-by: Benety Goh <benety@mongodb.com>
2014-11-06 14:11:24 -05:00
Adam Midvidy
e5f1fc0362 SERVER-15992 dumprestore_auth{2,3} js rely on W=0
Closes #865

Signed-off-by: Benety Goh <benety@mongodb.com>
2014-11-06 12:22:31 -05:00
Adam Midvidy
cf1280d254 SERVER-15979 remove another mmap_v1ism from tool suite
Closes #864

Signed-off-by: Benety Goh <benety@mongodb.com>
2014-11-06 12:21:01 -05:00
Adam Midvidy
6821e25b26 SERVER-15980 disable dumprestore_auth.js until it is rewritten to work on WT
Signed-off-by: Ian Whalen <ian.whalen@gmail.com>
2014-11-05 19:24:22 -05:00
Adam Midvidy
a2512e3b7e SERVER-15979: Remove mmap_v1isms from tool suite
Signed-off-by: Ian Whalen <ian.whalen@gmail.com>
2014-11-05 19:16:58 -05:00
Adam Midvidy
3af62b6af0 SERVER-15960 dumpfilename1.js test should not depend on single-threaded semantics
Closes #858

Signed-off-by: Benety Goh <benety@mongodb.com>
2014-11-04 21:43:06 -05:00
mike o'brien
370dd5521a TOOLS-261 dumprestore_auth test must allow listIndexes permission
Closes #841

Signed-off-by: Benety Goh <benety@mongodb.com>
2014-10-28 16:50:56 -04:00
Eric Milkie
06b3468eac SERVER-15535 add version 2 to generated oplog document 2014-10-17 11:43:56 -04:00
mike o'brien
9dac9ae4ae SERVER-15703 use w=1 for dumprestore test
Closes #830

Signed-off-by: Benety Goh <benety@mongodb.com>
2014-10-17 10:24:54 -04:00
Kyle Erf
9743c371db SERVER-15597 Fix race condition in dumprestore7.js
Closes #825

Signed-off-by: Benety Goh <benety@mongodb.com>
2014-10-10 09:24:41 -04:00
Sam Helman
b585cefc14 SERVER-15517 use slashes rather than double quotes for escaping in shell launcher
Closes #823

Signed-off-by: Benety Goh <benety@mongodb.com>
2014-10-10 09:20:27 -04:00
Greg Studer
ff94c06cbd SERVER-15547 move gridfs sharding test to the "tool" tests 2014-10-09 15:12:23 -04:00
Benety Goh
38e7e25e28 SERVER-15547 removed tests that rely on tools --dbpath option 2014-10-08 11:28:21 -04:00
Dan Pasette
686dd80d07 SERVER-14668 ignore empty options returned from listCollections in dumprestoreWithNoOptions.js 2014-10-08 11:09:30 -04:00
Benety Goh
b95adf31a0 SERVER-15547 removed tests that rely on tools --dbpath option 2014-10-07 19:49:27 -04:00
Sam Helman
eca7242b05 SERVER-15517 Remove spaces from query in dumprestore7.js, exportimport4.js and exportimport5.js
Closes #806

Signed-off-by: Benety Goh <benety@mongodb.com>
2014-10-07 10:42:02 -04:00
Benety Goh
33c65901a5 SERVER-15487 added 'command' mode to run commands on database
extended processFile() and gotObject() to accept output stream
             removed 'applyOps' mode
             general code clean up - removed options that are either unused or replaced by --mode
2014-10-06 12:14:11 -04:00
mike o'brien
cb3fa9c396 SERVER-15397 use parsed values to check correctness of CSV import/export values
Closes #808

Signed-off-by: Benety Goh <benety@mongodb.com>
2014-10-03 15:43:59 -04:00
mike o'brien
904f6c7ea8 SERVER-15397 use doc equality test instead of string equality to test csv import
Closes #803

Signed-off-by: Benety Goh <benety@mongodb.com>
2014-10-01 20:58:28 -04:00