mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
* cleanup es even if test fails * use correct beforeAll/afterAll hooks for jest
This commit is contained in:
parent
3d9fb52cee
commit
d2bcbb74ce
1 changed files with 19 additions and 15 deletions
|
@ -81,25 +81,29 @@ describe(`running the plugin-generator via 'node scripts/generate_plugin.js plug
|
|||
await execa('yarn', ['build'], { cwd: generatedPath });
|
||||
});
|
||||
|
||||
it(`'yarn start' should result in the spec plugin being initialized on kibana's stdout`, async () => {
|
||||
describe('with es instance', () => {
|
||||
const log = new ToolingLog();
|
||||
|
||||
const es = createLegacyEsTestCluster({ license: 'basic', log });
|
||||
await es.start();
|
||||
await withProcRunner(log, async proc => {
|
||||
await proc.run('kibana', {
|
||||
cmd: 'yarn',
|
||||
args: [
|
||||
'start',
|
||||
'--optimize.enabled=false',
|
||||
'--logging.json=false',
|
||||
'--migrations.skip=true',
|
||||
],
|
||||
cwd: generatedPath,
|
||||
wait: /ispec_plugin.+Status changed from uninitialized to green - Ready/,
|
||||
beforeAll(es.start);
|
||||
afterAll(es.stop);
|
||||
|
||||
it(`'yarn start' should result in the spec plugin being initialized on kibana's stdout`, async () => {
|
||||
await withProcRunner(log, async proc => {
|
||||
await proc.run('kibana', {
|
||||
cmd: 'yarn',
|
||||
args: [
|
||||
'start',
|
||||
'--optimize.enabled=false',
|
||||
'--logging.json=false',
|
||||
'--migrations.skip=true',
|
||||
],
|
||||
cwd: generatedPath,
|
||||
wait: /ispec_plugin.+Status changed from uninitialized to green - Ready/,
|
||||
});
|
||||
await proc.stop('kibana');
|
||||
});
|
||||
await proc.stop('kibana');
|
||||
});
|
||||
await es.stop();
|
||||
});
|
||||
|
||||
it(`'yarn preinstall' should exit 0`, async () => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue