1
0
Fork 0

turn off LDAP tests by default in community builds

This commit is contained in:
jsteemann 2017-05-10 23:26:12 +02:00
parent 6fad62e53d
commit cb189bd973
1 changed files with 11 additions and 0 deletions

View File

@ -236,6 +236,17 @@ exports.setup = function (testFns, defaultFns, opts, fnDocs, optionsDoc) {
opts['ldapUrl'] = '127.0.0.1';
opts['caCertFilePath'] = '~/ca_cert.pem';
// turn off ldap tests by default. only enable them in enterprise version
opts['skipLdap'] = true;
let version = {};
if (global.ARANGODB_CLIENT_VERSION) {
version = global.ARANGODB_CLIENT_VERSION(true);
if (version['enterprise-version']) {
opts['skipLdap'] = false;
}
}
for (var attrname in functionsDocumentation) { fnDocs[attrname] = functionsDocumentation[attrname]; }
for (var i = 0; i < optionsDocumentation.length; i++) { optionsDoc.push(optionsDocumentation[i]); }
};