Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Migrations V2] Unskip migration_7.7.2_xpack_100k #103435

Merged
merged 7 commits into from
Jun 29, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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