Commit Graph

59 Commits

Author SHA1 Message Date
Kaloian Manassiev
20cd3a392e SERVER-21050 Introduce ReplSetTest.State enumeration everywhere
Makes all JS tests access the replica set member state from the class
itself instead of the object instance. Also removes some unused code.
2015-12-11 13:21:22 -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
Kaloian Manassiev
706ac90265 SERVER-21186 Make all sharding tests use default verbosity of 1
The default ShardingTest verbosity is currently zero, but we have many
tests, which bump it to 1 and even higher.

Since verbosity level of 0 is sometimes insufficient for investigating
transient failures, this change makes the default to be 1 and removes all
places, which explicitly make it 1 or higher.
2015-11-11 11:01:18 -05:00
Max Hirschhorn
78d3e85ae6 SERVER-20867 Integrate mongobridge into ShardingTest. 2015-11-09 09:56:21 -05:00
Kaloian Manassiev
488c2d5815 SERVER-20787 Cleanup sharding auth test
This change makes the auth.js faster by using much smaller amount of data
and writes a separate test, which exercises the auto-split/auto-rebalance
logic.
2015-10-07 17:33:09 -04:00
Spencer T Brody
75f185e88b SERVER-20494 SERVER-20493 Change CatalogManagerReplicaSet to use Nearest read preference 2015-09-24 13:36:59 -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
Jonathan Reams
5da4be677c SERVER-18376 Re-add bits to buildinfo 2015-05-11 14:52:44 -04:00
Jonathan Reams
c269033226 SERVER-18099 Refactor buildinfo/version reporting 2015-04-30 09:47:35 -04:00
Spencer T Brody
966cc5b300 Increase awaitReplication timeout in sharding/auth.js to make it more stable 2015-04-15 14:24:00 -04:00
Adam Midvidy
1991daaff1 SERVER-7775 add currentOp command 2015-04-13 10:14:12 -04:00
Spencer T Brody
9575fda33b Call awaitReplication in sharding/auth.js test in attempt to make it more stable 2015-04-10 11:47:17 -04:00
Adam Midvidy
d6cd29d1fc SERVER-7775 add killOp command 2015-04-06 18:49:59 -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
Dan Pasette
abf39b71c7 SERVER-15973 disable sharding/auth.js and re-enable auth/auth1.js 2014-11-05 19:28:06 -05:00
Andreas Nilsson
2a741dfecb SERVER-7596 Fix sharding/auth.js test to use SCRAM-SHA-1 2014-11-04 17:39:12 -05:00
Spencer T Brody
65c028b69b SERVER-14685 Wait for balancing and replication in sharding/auth.js test 2014-07-25 16:23:34 -04:00
Amalia Hawkins
1b4b52a9d4 SERVER-12621 narrow the localhost exception when auth is enabled 2014-05-22 20:29:39 -04:00
daveh86
bce39f0671 SERVER-12605 update ShardingTest to turn off balancer by default
Signed-off-by: Benety Goh <benety@mongodb.com>
2014-05-12 14:38:23 -04:00
Spencer T Brody
7996f704f3 SERVER-13799 Increase timeout waiting for user to replicate in sharding/auth.js test 2014-05-01 15:45:43 -04:00
Spencer T Brody
e762bdce12 SERVER-13799 Wait for balancer in sharding/auth.js test 2014-04-30 14:39:17 -04:00
Randolph Tan
7acafe85d9 SERVER-13425 migrate sharding jstest suite to use write commands api 2014-04-21 16:53:25 -04:00
Spencer T Brody
bf0efac7a9 SERVER-12072 Don't swallow 'norepl' errors in the shell now that they no longer happen with default write concern 2014-01-07 18:17:42 -05:00
Spencer T Brody
49fd6dbb2b SERVER-11555 Replace all occurrences of addUser with createUser in jstests 2013-11-06 17:11:39 -05:00
Spencer T Brody
f0c6cebd73 SERVER-10794 Maintain backwards-compatible form of addUser for one more release 2013-10-11 18:14:12 -04:00
Spencer T Brody
ec23a4a358 SERVER-9517 Update tests to pass with new user schema 2013-09-06 12:31:22 -04:00
Greg Studer
b54527bc93 SERVER-10629 auth.js better tracing for missing docs using oplog 2013-08-27 13:24:43 -04:00
Andy Schwerin
f62d600cb0 SERVER-1891 Consolidate command authorization checking logic.
This reverts commit 2e2a6fdffd and also fixes the build break that the
original "Consolidate command authorization checking logic" patch introduced.
2013-07-17 14:35:14 -04:00
Andy Schwerin
2e2a6fdffd Revert "SERVER-1891 Consolidate command authorization checking logic."
This reverts commit d430713c40.
2013-07-10 16:43:31 -04:00
Andy Schwerin
d430713c40 SERVER-1891 Consolidate command authorization checking logic. 2013-07-10 13:26:13 -04:00
Eliot Horowitz
2bf4f80e88 reduce logging verbosity 2012-12-24 13:18:44 -05:00
Spencer T Brody
2d6e8e7951 SERVER-7572 Remove AuthenticationInfo::isAuthorizedForLevel 2012-12-11 19:30:02 -05:00
Spencer T Brody
b6019134eb Fix jstests/sharding/auth.js 2012-11-19 15:56:32 -05:00
Spencer T Brody
59a247fbd4 Try to make jstests/sharding/auth.js more robust 2012-11-19 15:55:55 -05:00
Spencer T Brody
93fdafcb4c Increase logging verbosity of jstests/sharding/auth.js SERVER-7651 2012-11-13 15:20:46 -05:00
Spencer T Brody
f641164ba1 Fix test - listdbs isn't a valid command name 2012-06-20 12:59:38 -04:00
Greg Studer
e2a664776e wait for secondary status before addUser so we're more sure the change propagates SERVER-5895 2012-05-22 11:56:39 -04:00
Greg Studer
847b343fa5 SERVER-5876 buildbot auth.js + others - make sure we wait for replication of users added for security 2012-05-21 15:34:58 -04:00
Eric Milkie
8afc2008ca fix test after SERVER-5784 speedup exposed timing issues 2012-05-17 16:32:25 -04:00
Spencer T Brody
78527f722e Fix test that's flaky due to SERVER-4356 2011-11-22 20:02:51 -05:00
agirbal
d9ee2526f4 SERVER-4114: added admin user to each shard for better testing 2011-11-15 00:40:28 -08:00
Kristina
e2ba7760e0 Make sharded killOp/curOp/unlock check auth SERVER-4250 2011-11-11 13:10:04 -05:00
agirbal
fe7f1c66ff SERVER-4114: added test 2011-11-07 21:06:14 -08:00
Spencer T Brody
c2fc333508 Extend flaky test to get more information on failure. 2011-11-07 17:25:09 -05:00
Eliot Horowitz
50c851a36e not all commands with read only users work correct SERVER-4156 2011-10-29 01:55:13 -04:00
Kristina
740219aaaf Add read auth check for commands 2011-10-27 16:29:28 -04:00
Eliot Horowitz
2ba6913e2d test for SERVER-4156 sharding with read/only user 2011-10-26 17:43:04 -04:00
gregs
1700fe29bc buildbot make sure writebacks processed before counting elements auth.js 2011-10-21 10:02:56 -04:00
gregs
dfd49fc99c buildbot db not set for sharding tests auth.js
also do not use slaveok
2011-10-06 18:16:51 -04:00
gregs
9b37bd734a buildbot stop balancer before slaveOk queries to avoid dup results auth.js 2011-10-06 10:26:37 -04:00