[xpack/jest_integration] remove flaky test and script block (#67138)

This commit is contained in:
Spencer 2020-05-21 09:59:12 -07:00 committed by GitHub
parent 90fc521d21
commit 25c382f07d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 0 additions and 46 deletions

View file

@ -16,13 +16,6 @@
//
// See all cli options in https://facebook.github.io/jest/docs/cli.html
throw new Error(`
jest_integration tests have been disabled because of a flaky failure in the
example integration test: https://github.com/elastic/kibana/issues/32795#issuecomment-471585274
when un-skipping these tests make sure to uncomment test/scripts/jenkins_xpack.sh lines 33-37
`);
const resolve = require('path').resolve;
process.argv.push('--config', resolve(__dirname, '../test_utils/jest/config.integration.js'));
process.argv.push('--runInBand');

View file

@ -1,39 +0,0 @@
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License;
* you may not use this file except in compliance with the Elastic License.
*/
import * as kbnTestServer from '../../../../src/test_utils/kbn_server';
import { TestKbnServerConfig } from '../../kbn_server_config';
describe('example integration test with kbn server', () => {
let kbn: any;
let kbnServer: any;
let kbnRootServer: any;
let esServer: any;
beforeAll(async () => {
const servers = kbnTestServer.createTestServers({
adjustTimeout: (t: number) => jest.setTimeout(t),
settings: TestKbnServerConfig,
});
esServer = await servers.startES();
kbn = await servers.startKibana();
kbnRootServer = kbn.root;
kbnServer = kbn.kbnServer;
expect(servers).toBeDefined();
expect(kbnServer).toBeDefined();
});
afterAll(async () => {
await esServer.stop();
await kbn.stop();
});
it('should have started new platform server correctly', () => {
expect(kbnRootServer.root).toBeDefined();
expect(kbnServer.server).toBeDefined();
expect(kbnServer.server.plugins).toBeDefined();
});
});