mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
[plugin-helpers] use multiple fixtures so parallel tests don't break each other (#16624)
(cherry picked from commit a9f27bbee0
)
This commit is contained in:
parent
0247b33878
commit
60c0e9b1b1
15 changed files with 61 additions and 5 deletions
|
@ -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"
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,7 @@
|
|||
module.exports = kibana => new kibana.Plugin({
|
||||
uiExports: {
|
||||
hacks: [
|
||||
'plugins/test_plugin/hack.js'
|
||||
]
|
||||
}
|
||||
});
|
|
@ -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"
|
||||
}
|
||||
}
|
|
@ -0,0 +1 @@
|
|||
console.log('this is my hack');
|
|
@ -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."
|
||||
}
|
|
@ -0,0 +1,7 @@
|
|||
module.exports = kibana => new kibana.Plugin({
|
||||
uiExports: {
|
||||
hacks: [
|
||||
'plugins/test_plugin/hack.js'
|
||||
]
|
||||
}
|
||||
});
|
|
@ -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"
|
||||
}
|
||||
}
|
|
@ -0,0 +1 @@
|
|||
console.log('this is my hack');
|
|
@ -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."
|
||||
}
|
|
@ -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 () {};
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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');
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue