diff options
author | Charlie Swanson <charlie.swanson@mongodb.com> | 2015-11-16 17:43:22 -0500 |
---|---|---|
committer | Charlie Swanson <charlie.swanson@mongodb.com> | 2015-12-09 12:20:02 -0500 |
commit | 8c67bb9322f351cd54fa9a80de7c33d3c4fdfdc8 (patch) | |
tree | 6440f151d2ba327517b86f089f5e053dd33cb365 /jstests | |
parent | 13270a048515916324c5f44958c225550d5c4dc9 (diff) | |
download | mongo-8c67bb9322f351cd54fa9a80de7c33d3c4fdfdc8.tar.gz |
SERVER-21384 Enable all suites on ephemeral storage engines
Diffstat (limited to 'jstests')
-rw-r--r-- | jstests/auth/auth_helpers.js | 3 | ||||
-rw-r--r-- | jstests/auth/mr_auth.js | 3 | ||||
-rw-r--r-- | jstests/auth/server-4892.js | 5 | ||||
-rw-r--r-- | jstests/gle/gle_explicit_optime.js | 5 | ||||
-rw-r--r-- | jstests/gle/gle_sharded_wc.js | 4 | ||||
-rw-r--r-- | jstests/gle/sync1.js | 4 | ||||
-rw-r--r-- | jstests/httpinterface/sharding_configdb_on_default_ports.js | 13 | ||||
-rw-r--r-- | jstests/ssl/libs/ssl_helpers.js | 1 | ||||
-rw-r--r-- | jstests/ssl/upgrade_to_x509_ssl.js | 3 | ||||
-rw-r--r-- | jstests/sslSpecial/upgrade_to_x509_ssl_nossl.js | 3 |
10 files changed, 39 insertions, 5 deletions
diff --git a/jstests/auth/auth_helpers.js b/jstests/auth/auth_helpers.js index 313c633fc08..fc26372ba0d 100644 --- a/jstests/auth/auth_helpers.js +++ b/jstests/auth/auth_helpers.js @@ -1,4 +1,7 @@ // Test the db.auth() shell helper. +// +// This test requires users to persist across a restart. +// @tags: [requires_persistence] var conn = MongoRunner.runMongod({ smallfiles: ""}); diff --git a/jstests/auth/mr_auth.js b/jstests/auth/mr_auth.js index 8fc556db101..6ef85be9b7b 100644 --- a/jstests/auth/mr_auth.js +++ b/jstests/auth/mr_auth.js @@ -1,4 +1,7 @@ // MapReduce executed by a read-only user when --auth enabled should only be able to use inline mode. Other modes require writing to an output collection which is not allowed. SERVER-3345 +// +// This test requires users to persist across a restart. +// @tags: [requires_persistence] baseName = "jstests_mr_auth"; dbName = "test"; diff --git a/jstests/auth/server-4892.js b/jstests/auth/server-4892.js index 3053fcab4dc..16e4b8b6f64 100644 --- a/jstests/auth/server-4892.js +++ b/jstests/auth/server-4892.js @@ -1,8 +1,11 @@ -/* +/** * Regression test for SERVER-4892. * * Verify that a client can delete cursors that it creates, when mongod is running with "auth" * enabled. + * + * This test requires users to persist across a restart. + * @tags: [requires_persistence] */ var baseName = 'jstests_auth_server4892'; diff --git a/jstests/gle/gle_explicit_optime.js b/jstests/gle/gle_explicit_optime.js index 77c526e981d..7bc9e35b3a9 100644 --- a/jstests/gle/gle_explicit_optime.js +++ b/jstests/gle/gle_explicit_optime.js @@ -1,6 +1,9 @@ // // Tests the use of the wOpTime option in getLastError // +// This test requires fsync to lock the secondary, so cannot be run on storage engines which do not +// support the command. +// @tags: [requires_fsync] var rst = new ReplSetTest({ nodes : 2 }); rst.startSet(); @@ -18,7 +21,7 @@ assert.eq( null, gleObj.err ); var opTimeBeforeFailure = gleObj.lastOp; // Lock the secondary -secondary.getDB("admin").fsyncLock(); +assert.commandWorked(secondary.getDB("admin").fsyncLock()); // Insert a doc and replicate it to the primary only coll.insert({ some : "doc" }); diff --git a/jstests/gle/gle_sharded_wc.js b/jstests/gle/gle_sharded_wc.js index bdde00cab25..7cff8b20433 100644 --- a/jstests/gle/gle_sharded_wc.js +++ b/jstests/gle/gle_sharded_wc.js @@ -1,5 +1,9 @@ // Tests of sharded GLE enforcing write concern against operations in a cluster // Basic sharded GLE operation is tested elsewhere. +// +// This test asserts that a journaled write to a mongod running with --nojournal should be rejected, +// so cannot be run on the ephemeralForTest storage engine, as it accepts all journaled writes. +// @tags: [SERVER-21420] (function() { diff --git a/jstests/gle/sync1.js b/jstests/gle/sync1.js index 83d26d1e71f..c840ff8fac5 100644 --- a/jstests/gle/sync1.js +++ b/jstests/gle/sync1.js @@ -1,4 +1,8 @@ // TODO: remove test after we deprecate SyncClusterConnection +// +// This test involves restarting a standalone shard, so cannot be run on ephemeral storage engines. +// A restarted standalone will lose all data when using an ephemeral storage engine. +// @tags: [requires_persistence] var test = new SyncCCTest( "sync1" ); diff --git a/jstests/httpinterface/sharding_configdb_on_default_ports.js b/jstests/httpinterface/sharding_configdb_on_default_ports.js index c11e3ce06af..9c4f2f8605c 100644 --- a/jstests/httpinterface/sharding_configdb_on_default_ports.js +++ b/jstests/httpinterface/sharding_configdb_on_default_ports.js @@ -17,10 +17,17 @@ } var c1, c2, c3; - c1 = MongoRunner.runMongod({configsvr: "", port: 27019, replSet: "csrs"}); + // The config servers must support readConcern: majority to be run as a replica set, so + // explicitly set storage engine to wiredTiger. + c1 = MongoRunner.runMongod({ + configsvr: "", + port: 27019, + replSet: "csrs", + storageEngine: "wiredTiger" + }); assert.commandWorked(c1.adminCommand("replSetInitiate")); - c2 = MongoRunner.runMongod({configsvr: ""}); - c3 = MongoRunner.runMongod({configsvr: ""}); + c2 = MongoRunner.runMongod({configsvr: "", storageEngine: "wiredTiger"}); + c3 = MongoRunner.runMongod({configsvr: "", storageEngine: "wiredTiger"}); var configstrs = [ getHostPart(c1.host) + "," + c2.host + "," + c3.host, diff --git a/jstests/ssl/libs/ssl_helpers.js b/jstests/ssl/libs/ssl_helpers.js index 2f57c33c6c4..2b7d7afc5b6 100644 --- a/jstests/ssl/libs/ssl_helpers.js +++ b/jstests/ssl/libs/ssl_helpers.js @@ -66,6 +66,7 @@ function mixedShardTest(options1, options2, shouldSucceed) { var r = st.adminCommand({enableSharding: "test"}); assert.eq(r, true, "error enabling sharding for this configuration"); + st.ensurePrimaryShard("test", "shard0000"); r = st.adminCommand({ movePrimary: 'test', to: 'shard0001' }); var db1 = st.getDB("test"); diff --git a/jstests/ssl/upgrade_to_x509_ssl.js b/jstests/ssl/upgrade_to_x509_ssl.js index 2fef4e3c149..fef4d1ca848 100644 --- a/jstests/ssl/upgrade_to_x509_ssl.js +++ b/jstests/ssl/upgrade_to_x509_ssl.js @@ -5,6 +5,9 @@ * NOTE: This test is similar to upgrade_to_x509_ssl_nossl.js in the * sslSpecial test suite. This test uses ssl communication * and therefore cannot test modes that do not allow ssl. + * + * This test requires users to persist across a restart. + * @tags: [requires_persistence] */ function authAllNodes() { diff --git a/jstests/sslSpecial/upgrade_to_x509_ssl_nossl.js b/jstests/sslSpecial/upgrade_to_x509_ssl_nossl.js index 74aae02a896..d6c037f5809 100644 --- a/jstests/sslSpecial/upgrade_to_x509_ssl_nossl.js +++ b/jstests/sslSpecial/upgrade_to_x509_ssl_nossl.js @@ -5,6 +5,9 @@ * NOTE: This test is similar to upgrade_to_x509_ssl.js in the * ssl test suite. This test cannot use ssl communication * and therefore cannot test modes that only allow ssl. + * + * This test requires users to persist across a restart. + * @tags: [requires_persistence] */ load("jstests/ssl/libs/ssl_helpers.js"); |