Skip to content

Commit

Permalink
[Migrations V2] Unskip migration_7.7.2_xpack_100k (#103435)
Browse files Browse the repository at this point in the history
  • Loading branch information
Bamieh committed Jun 29, 2021
1 parent 2e00e9c commit 6e308a2
Showing 1 changed file with 9 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand All @@ -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;
Expand Down Expand Up @@ -64,12 +61,9 @@ describe.skip('migration from 7.7.2-xpack with 100k objects', () => {
},
},
},
loggers: [
{
name: 'root',
appenders: ['file'],
},
],
root: {
appenders: ['default', 'file'],
},
},
},
{
Expand Down Expand Up @@ -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'),
});
});

Expand Down

0 comments on commit 6e308a2

Please sign in to comment.