Files
mongo/jstests/multiVersion/dumprestore_sharded.js
Kaloian Manassiev b6abb408c1 SERVER-24603 Re-enable auth tests in 'sharding_last_stable_mongos'
This change makes auth tests with 3.2 mongos, which need to control the
balancer state to go through a special control mongos instance running
version 3.4.

This reverts commit bfde0ecb1c.
2016-06-20 22:15:57 -04:00

35 lines
1.3 KiB
JavaScript

load('./jstests/multiVersion/libs/dumprestore_helpers.js');
// The base name to use for various things in the test, including the dbpath and the database name
var testBaseName = "jstests_tool_dumprestore_sharded";
// Paths to external directories to be used to store dump files
var dumpDir = MongoRunner.dataPath + testBaseName + "_dump_external/";
var testDbpath = MongoRunner.dataPath + testBaseName + "_dbpath_external/";
// Test dumping from a sharded cluster across versions
var shardedDumpTests = {
'serverSourceVersion': ["latest", "last-stable"],
'serverDestVersion': ["latest", "last-stable"],
'mongoDumpVersion': ["latest", "last-stable"],
'mongoRestoreVersion': ["latest", "last-stable"],
'dumpDir': [dumpDir],
'testDbpath': [testDbpath],
'dumpType': ["mongos"],
'restoreType': ["mongod"]
};
runAllDumpRestoreTests(shardedDumpTests);
// Test restoring to a sharded cluster across versions
var shardedRestoreTests = {
'serverSourceVersion': ["latest", "last-stable"],
'serverDestVersion': ["latest", "last-stable"],
'mongoDumpVersion': ["latest", "last-stable"],
'mongoRestoreVersion': ["latest", "last-stable"],
'dumpDir': [dumpDir],
'testDbpath': [testDbpath],
'dumpType': ["mongod"],
'restoreType': ["mongos"]
};
runAllDumpRestoreTests(shardedRestoreTests);