diff --git a/js/client/modules/@arangodb/testing.js b/js/client/modules/@arangodb/testing.js index feaabb3165..470f239efe 100644 --- a/js/client/modules/@arangodb/testing.js +++ b/js/client/modules/@arangodb/testing.js @@ -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 //////////////////////////////////////////////////////////////////////////////// diff --git a/js/server/tests/resilience/resilience-synchronous-replication-cluster.js b/js/server/tests/resilience/resilience-synchronous-repl-cluster.js similarity index 100% rename from js/server/tests/resilience/resilience-synchronous-replication-cluster.js rename to js/server/tests/resilience/resilience-synchronous-repl-cluster.js