summaryrefslogtreecommitdiff
path: root/jstests/multiVersion/dumprestore.js
blob: 07b7895c07fc2713f86c086c7bdd39002a28a18e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// dumprestore.js

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";

// 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/";

// Start with basic multiversion tests just running against a single mongod
var singleNodeTests = {
    'serverSourceVersion' : [ "latest", "last-stable" ],
    'serverDestVersion' :[ "latest", "last-stable" ],
    'mongoDumpVersion' :[ "latest", "last-stable" ],
    'mongoRestoreVersion' :[ "latest", "last-stable" ],
    'dumpDir' : [ dumpDir ],
    'testDbpath' : [ testDbpath ],
    'dumpType' : [ "mongod" ],
    'restoreType' : [ "mongod" ]
};
runAllDumpRestoreTests(singleNodeTests);