1
0
Fork 0

skip "dump_encrypted" test in non-enterprise mode (#6334)

This commit is contained in:
Jan 2018-09-01 22:55:04 +02:00 committed by Frank Celler
parent 3a3c4f7f8b
commit e03f0daccd
1 changed files with 21 additions and 9 deletions

View File

@ -265,6 +265,25 @@ function dumpAuthentication (options) {
}
function dumpEncrypted (options) {
// test is only meaningful in the enterprise version
let skip = true;
if (global.ARANGODB_CLIENT_VERSION) {
let version = global.ARANGODB_CLIENT_VERSION(true);
if (version.hasOwnProperty('enterprise-version')) {
skip = false;
}
}
if (skip) {
print('skipping dump_encrypted test');
return {
dump_encrypted: {
status: true,
skipped: true
}
};
}
let c = getClusterStrings(options);
let afterServerStart = function(instanceInfo) {
@ -292,15 +311,8 @@ exports.setup = function (testFns, defaultFns, opts, fnDocs, optionsDoc, allTest
testFns['dump'] = dump;
defaultFns.push('dump');
// only register the encryption tests in the enterprise version
let version = {};
if (global.ARANGODB_CLIENT_VERSION) {
version = global.ARANGODB_CLIENT_VERSION(true);
if (version.hasOwnProperty('enterprise-version')) {
testFns['dump_encrypted'] = dumpEncrypted;
defaultFns.push('dump_encrypted');
}
}
testFns['dump_encrypted'] = dumpEncrypted;
defaultFns.push('dump_encrypted');
testFns['dump_authentication'] = dumpAuthentication;
defaultFns.push('dump_authentication');