mirror of https://gitee.com/bigwinds/arangodb
skip "dump_encrypted" test in non-enterprise mode (#6334)
This commit is contained in:
parent
3a3c4f7f8b
commit
e03f0daccd
|
@ -265,6 +265,25 @@ function dumpAuthentication (options) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function dumpEncrypted (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 c = getClusterStrings(options);
|
||||||
|
|
||||||
let afterServerStart = function(instanceInfo) {
|
let afterServerStart = function(instanceInfo) {
|
||||||
|
@ -292,15 +311,8 @@ exports.setup = function (testFns, defaultFns, opts, fnDocs, optionsDoc, allTest
|
||||||
testFns['dump'] = dump;
|
testFns['dump'] = dump;
|
||||||
defaultFns.push('dump');
|
defaultFns.push('dump');
|
||||||
|
|
||||||
// only register the encryption tests in the enterprise version
|
testFns['dump_encrypted'] = dumpEncrypted;
|
||||||
let version = {};
|
defaultFns.push('dump_encrypted');
|
||||||
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_authentication'] = dumpAuthentication;
|
testFns['dump_authentication'] = dumpAuthentication;
|
||||||
defaultFns.push('dump_authentication');
|
defaultFns.push('dump_authentication');
|
||||||
|
|
Loading…
Reference in New Issue