mirror of https://gitee.com/bigwinds/arangodb
fix location - while they work with the server these tests are run in arangosh so they need to be in client/ (#9435)
* fix location - while they work with the server these tests are run in arangosh so they need to be in client/ * rename testsuite * rename file as its testsuite * Rename permissions_server to server_permissions
This commit is contained in:
parent
8897cd8f31
commit
0ad76a8185
|
@ -47,18 +47,18 @@ const RESET = require('internal').COLORS.COLOR_RESET;
|
|||
// const YELLOW = require('internal').COLORS.COLOR_YELLOW;
|
||||
|
||||
const functionsDocumentation = {
|
||||
'permissions_server': 'permissions test for the server'
|
||||
'server_permissions': 'permissions test for the server'
|
||||
};
|
||||
|
||||
const testPaths = {
|
||||
'permissions_server': [tu.pathForTesting('server/permissions')]
|
||||
'server_permissions': [tu.pathForTesting('client/server_permissions')]
|
||||
};
|
||||
|
||||
function permissions_server(options) {
|
||||
function server_permissions(options) {
|
||||
let count = 0;
|
||||
let results = { shutdown: true };
|
||||
let filtered = {};
|
||||
const tests = tu.scanTestPaths(testPaths.permissions_server, options);
|
||||
const tests = tu.scanTestPaths(testPaths.server_permissions, options);
|
||||
|
||||
tests.forEach(function (testFile, i) {
|
||||
count += 1;
|
||||
|
@ -73,7 +73,7 @@ function permissions_server(options) {
|
|||
let paramsFistRun = {};
|
||||
let paramsSecondRun;
|
||||
let rootDir = fs.join(fs.getTempPath(), count.toString());
|
||||
let instanceInfo = pu.startInstance(options.protocol, options, paramsFistRun, "permissions_server", rootDir); // fist start
|
||||
let instanceInfo = pu.startInstance(options.protocol, options, paramsFistRun, "server_permissions", rootDir); // fist start
|
||||
pu.cleanupDBDirectoriesAppend(instanceInfo.rootDir);
|
||||
try {
|
||||
print(BLUE + '================================================================================' + RESET);
|
||||
|
@ -130,6 +130,6 @@ function permissions_server(options) {
|
|||
|
||||
exports.setup = function (testFns, defaultFns, opts, fnDocs, optionsDoc, allTestPaths) {
|
||||
Object.assign(allTestPaths, testPaths);
|
||||
testFns['permissions_server'] = permissions_server;
|
||||
testFns['server_permissions'] = server_permissions;
|
||||
for (var attrname in functionsDocumentation) { fnDocs[attrname] = functionsDocumentation[attrname]; }
|
||||
};
|
Loading…
Reference in New Issue