[Migrations V2] Unskip migration_7.7.2_xpack_100k (#103435)

This commit is contained in:
Ahmad Bamieh 2021-06-29 13:28:40 +03:00 committed by GitHub
parent 2e00e9c11b
commit 6e308a2a1e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -6,9 +6,8 @@
* Side Public License, v 1.
*/
import Path from 'path';
import Fs from 'fs';
import Util from 'util';
import path from 'path';
import { unlink } from 'fs/promises';
import { REPO_ROOT } from '@kbn/dev-utils';
import { Env } from '@kbn/config';
import { getEnvOptions } from '@kbn/config/target/mocks';
@ -18,16 +17,14 @@ import { InternalCoreStart } from '../../../internal_types';
import { Root } from '../../../root';
const kibanaVersion = Env.createDefault(REPO_ROOT, getEnvOptions()).packageInfo.version;
const logFilePath = Path.join(__dirname, 'migration_test_kibana.log');
const logFilePath = path.join(__dirname, 'migration_test_kibana.log');
const asyncUnlink = Util.promisify(Fs.unlink);
async function removeLogFile() {
// ignore errors if it doesn't exist
await asyncUnlink(logFilePath).catch(() => void 0);
await unlink(logFilePath).catch(() => void 0);
}
// FAILING on 7.13: https://github.com/elastic/kibana/issues/96895
describe.skip('migration from 7.7.2-xpack with 100k objects', () => {
describe('migration from 7.7.2-xpack with 100k objects', () => {
let esServer: kbnTestServer.TestElasticsearchUtils;
let root: Root;
let coreStart: InternalCoreStart;
@ -64,12 +61,9 @@ describe.skip('migration from 7.7.2-xpack with 100k objects', () => {
},
},
},
loggers: [
{
name: 'root',
appenders: ['file'],
},
],
root: {
appenders: ['default', 'file'],
},
},
},
{
@ -106,7 +100,7 @@ describe.skip('migration from 7.7.2-xpack with 100k objects', () => {
await removeLogFile();
await startServers({
oss: false,
dataArchive: Path.join(__dirname, 'archives', '7.7.2_xpack_100k_obj.zip'),
dataArchive: path.join(__dirname, 'archives', '7.7.2_xpack_100k_obj.zip'),
});
});