1
0
Fork 0

Test target resilience with synchronous replication test.

This commit is contained in:
Max Neunhoeffer 2016-05-19 22:56:24 +02:00
parent 1256159651
commit 29e68fdbd6
2 changed files with 23 additions and 0 deletions

View File

@ -46,6 +46,7 @@ const functionsDocumentation = {
"replication_ongoing": "replication ongoing tests",
"replication_static": "replication static tests",
"replication_sync": "replication sync tests",
"resilience": "resilience tests",
"shell_client": "shell client tests",
"shell_replication": "shell replication tests",
"shell_server": "shell server tests",
@ -1738,6 +1739,14 @@ function findTests() {
return fs.join(makePathUnix("js/client/tests/agency"), x);
}).sort();
testsCases.resilience = _.filter(fs.list(makePathUnix("js/server/tests/resilience")),
function(p) {
return p.substr(-3) === ".js";
}).map(
function(x) {
return fs.join(makePathUnix("js/server/tests/resilience"), x);
}).sort();
testsCases.server = testsCases.common.concat(testsCases.server_only);
testsCases.client = testsCases.common.concat(testsCases.client_only);
@ -3266,6 +3275,20 @@ testFuncs.replication_sync = function(options) {
return results;
};
////////////////////////////////////////////////////////////////////////////////
/// @brief TEST: resilience
////////////////////////////////////////////////////////////////////////////////
testFuncs.resilience = function(options) {
findTests();
options.propagateInstanceInfo = true;
options.cluster = true;
if (options.clusterNodes === undefined) {
options.clusterNodes = 3;
}
return performTests(options, testsCases.resilience, 'resilience');
};
////////////////////////////////////////////////////////////////////////////////
/// @brief TEST: shell_replication
////////////////////////////////////////////////////////////////////////////////