mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
[plugins] change plugin ids to be snakecase
This commit is contained in:
parent
3e75120a6e
commit
36cdae8281
8 changed files with 10 additions and 10 deletions
|
@ -1,4 +1,4 @@
|
|||
{
|
||||
"name": "devMode",
|
||||
"name": "dev_mode",
|
||||
"version": "1.0.0"
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{
|
||||
"name": "spyModes",
|
||||
"name": "spy_modes",
|
||||
"version": "1.0.0"
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{
|
||||
"name": "statusPage",
|
||||
"name": "status_page",
|
||||
"version": "1.0.0"
|
||||
}
|
||||
|
|
|
@ -19,7 +19,7 @@ export default (kibana) => {
|
|||
let config = kibana.config;
|
||||
|
||||
const testGlobs = ['src/ui/public/**/*.js'];
|
||||
const testingPluginId = config.get('testsBundle.pluginId');
|
||||
const testingPluginId = config.get('tests_bundle.pluginId');
|
||||
|
||||
if (testingPluginId) {
|
||||
const plugin = plugins.byId[testingPluginId];
|
||||
|
@ -49,7 +49,7 @@ export default (kibana) => {
|
|||
const testFiles = await findSourceFiles(testGlobs);
|
||||
for (let f of testFiles) modules.push(f);
|
||||
|
||||
if (config.get('testsBundle.instrument')) {
|
||||
if (config.get('tests_bundle.instrument')) {
|
||||
env.addPostLoader({
|
||||
test: /\.jsx?$/,
|
||||
exclude: /[\/\\](__tests__|node_modules|bower_components|webpackShims)[\/\\]/,
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{
|
||||
"name": "testsBundle",
|
||||
"name": "tests_bundle",
|
||||
"version": "0.0.0"
|
||||
}
|
||||
|
|
|
@ -21,7 +21,7 @@ module.exports = function (kbnServer, server, config) {
|
|||
});
|
||||
|
||||
server.decorate('reply', 'renderStatusPage', function () {
|
||||
var app = kbnServer.uiExports.getHiddenApp('statusPage');
|
||||
var app = kbnServer.uiExports.getHiddenApp('status_page');
|
||||
var resp = app ? this.renderApp(app) : this(kbnServer.status.toString());
|
||||
resp.code(kbnServer.status.isGreen() ? 200 : 503);
|
||||
return resp;
|
||||
|
|
|
@ -86,7 +86,7 @@ module.exports = function (grunt) {
|
|||
args: [
|
||||
...buildTestsArgs,
|
||||
'--server.port=5610',
|
||||
'--testsBundle.instrument=true',
|
||||
'--tests_bundle.instrument=true',
|
||||
...kbnServerFlags,
|
||||
]
|
||||
},
|
||||
|
|
|
@ -10,7 +10,7 @@ define(function (require) {
|
|||
bdd.before(function () {
|
||||
common = new Common(this.remote);
|
||||
// load the status page
|
||||
return common.navigateToApp('statusPage', false);
|
||||
return common.navigateToApp('status_page', false);
|
||||
});
|
||||
|
||||
bdd.it('should show the kibana plugin as ready', function () {
|
||||
|
@ -27,4 +27,4 @@ define(function (require) {
|
|||
.catch(common.handleError(self));
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue