[plugin-helpers] use multiple fixtures so parallel tests don't break each other (#16624)

(cherry picked from commit a9f27bbee0)
This commit is contained in:
Spencer 2018-02-08 17:25:06 -07:00 committed by spalger
parent 0247b33878
commit 60c0e9b1b1
15 changed files with 61 additions and 5 deletions

View file

@ -1,5 +1,5 @@
{
"name": "test_plugin",
"name": "build_action_test_plugin",
"version": "0.0.1",
"kibana": {
"version": "6.0.0"
@ -13,4 +13,4 @@
"scripts": {
"start": "node index.js"
}
}
}

View file

@ -0,0 +1,7 @@
module.exports = kibana => new kibana.Plugin({
uiExports: {
hacks: [
'plugins/test_plugin/hack.js'
]
}
});

View file

@ -0,0 +1,16 @@
{
"name": "create_build_test_plugin",
"version": "0.0.1",
"kibana": {
"version": "6.0.0"
},
"dependencies": {
},
"devDependencies": {
},
"scripts": {
"start": "node index.js"
}
}

View file

@ -0,0 +1 @@
console.log('this is my hack');

View file

@ -0,0 +1,4 @@
{
"UI-WELCOME_MESSAGE": "Cargando Kibana",
"UI-WELCOME_ERROR": "Kibana no se cargó correctamente. Heck la salida del servidor para obtener más información."
}

View file

@ -0,0 +1,7 @@
module.exports = kibana => new kibana.Plugin({
uiExports: {
hacks: [
'plugins/test_plugin/hack.js'
]
}
});

View file

@ -0,0 +1,16 @@
{
"name": "create_package_test_plugin",
"version": "0.0.1",
"kibana": {
"version": "6.0.0"
},
"dependencies": {
},
"devDependencies": {
},
"scripts": {
"start": "node index.js"
}
}

View file

@ -0,0 +1 @@
console.log('this is my hack');

View file

@ -0,0 +1,4 @@
{
"UI-WELCOME_MESSAGE": "Cargando Kibana",
"UI-WELCOME_ERROR": "Kibana no se cargó correctamente. Heck la salida del servidor para obtener más información."
}

View file

@ -3,7 +3,7 @@ const resolve = require('path').resolve;
const fs = require('fs');
const del = require('del');
const PLUGIN_FIXTURE = resolve(__dirname, '__fixtures__/test_plugin');
const PLUGIN_FIXTURE = resolve(__dirname, '__fixtures__/build_action_test_plugin');
const PLUGIN_BUILD_DIR = resolve(PLUGIN_FIXTURE, 'build');
const PLUGIN = require('../../lib/plugin_config')(PLUGIN_FIXTURE);
const noop = function () {};

View file

@ -3,7 +3,7 @@ const { resolve } = require('path');
const del = require('del');
const createBuild = require('./create_build');
const PLUGIN_FIXTURE = resolve(__dirname, '__fixtures__/test_plugin');
const PLUGIN_FIXTURE = resolve(__dirname, '__fixtures__/create_build_test_plugin');
const PLUGIN = require('../../lib/plugin_config')(PLUGIN_FIXTURE);
const PLUGIN_BUILD_DIR = resolve(PLUGIN_FIXTURE, 'build');
const PLUGIN_BUILD_TARGET = resolve(PLUGIN_BUILD_DIR, 'kibana', PLUGIN.id);

View file

@ -5,7 +5,7 @@ const del = require('del');
const createBuild = require('./create_build');
const createPackage = require('./create_package');
const PLUGIN_FIXTURE = resolve(__dirname, '__fixtures__/test_plugin');
const PLUGIN_FIXTURE = resolve(__dirname, '__fixtures__/create_package_test_plugin');
const PLUGIN = require('../../lib/plugin_config')(PLUGIN_FIXTURE);
const PLUGIN_BUILD_DIR = resolve(PLUGIN_FIXTURE, 'build-custom');