Skip to content

Commit

Permalink
[Migrations V2] Unskip migration_7.7.2_xpack_100k (elastic#103435)
Browse files Browse the repository at this point in the history
  • Loading branch information
Bamieh authored and kibanamachine committed Jun 29, 2021
1 parent 35f6e2e commit 2c3ce13
Showing 1 changed file with 8 additions and 13 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,12 +17,11 @@ 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);
}

describe('migration from 7.7.2-xpack with 100k objects', () => {
Expand Down Expand Up @@ -63,12 +61,9 @@ describe('migration from 7.7.2-xpack with 100k objects', () => {
},
},
},
loggers: [
{
name: 'root',
appenders: ['file'],
},
],
root: {
appenders: ['default', 'file'],
},
},
// reporting loads headless browser, that prevents nodejs process from exiting.
xpack: {
Expand Down Expand Up @@ -111,7 +106,7 @@ describe('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 2c3ce13

Please sign in to comment.