diff --git a/js/client/modules/@arangodb/testsuites/ldap.js b/js/client/modules/@arangodb/testsuites/ldap.js index b87c03eacc..0f93e5177a 100644 --- a/js/client/modules/@arangodb/testsuites/ldap.js +++ b/js/client/modules/@arangodb/testsuites/ldap.js @@ -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]); } };