mirror of https://gitee.com/bigwinds/arangodb
Test target resilience with synchronous replication test.
This commit is contained in:
parent
1256159651
commit
29e68fdbd6
|
@ -46,6 +46,7 @@ const functionsDocumentation = {
|
||||||
"replication_ongoing": "replication ongoing tests",
|
"replication_ongoing": "replication ongoing tests",
|
||||||
"replication_static": "replication static tests",
|
"replication_static": "replication static tests",
|
||||||
"replication_sync": "replication sync tests",
|
"replication_sync": "replication sync tests",
|
||||||
|
"resilience": "resilience tests",
|
||||||
"shell_client": "shell client tests",
|
"shell_client": "shell client tests",
|
||||||
"shell_replication": "shell replication tests",
|
"shell_replication": "shell replication tests",
|
||||||
"shell_server": "shell server tests",
|
"shell_server": "shell server tests",
|
||||||
|
@ -1738,6 +1739,14 @@ function findTests() {
|
||||||
return fs.join(makePathUnix("js/client/tests/agency"), x);
|
return fs.join(makePathUnix("js/client/tests/agency"), x);
|
||||||
}).sort();
|
}).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.server = testsCases.common.concat(testsCases.server_only);
|
||||||
testsCases.client = testsCases.common.concat(testsCases.client_only);
|
testsCases.client = testsCases.common.concat(testsCases.client_only);
|
||||||
|
|
||||||
|
@ -3266,6 +3275,20 @@ testFuncs.replication_sync = function(options) {
|
||||||
return results;
|
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
|
/// @brief TEST: shell_replication
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
Loading…
Reference in New Issue