Skip to content

Commit

Permalink
add 100k test data
Browse files Browse the repository at this point in the history
  • Loading branch information
pgayvallet committed Dec 10, 2020
1 parent 8319bb8 commit 5480e34
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 3 deletions.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -114,9 +114,31 @@ describe('migration v2', () => {
await stopServers();
});

it.only('works (tm)', async () => {
const response = await esClient.cat.indices();
console.log(response.body);
it('works (tm)', async () => {
await esClient.cat.indices();
// console.log(response.body);
});
});

describe('migration from 7.7.2-xpack with 100k objects', () => {
const migratedIndex = `.kibana_${kibanaVersion}_001`;

beforeAll(async () => {
await startServers({
oss: false,
dataArchive: join(__dirname, 'archives', '7_7_2_xpack_100k_obj.zip'),
});
});

afterAll(async () => {
await stopServers();
});

it('migrates all the objects', async () => {
const { body } = await esClient.count({
index: migratedIndex,
});
expect(body).toEqual({});
});
});

Expand Down

0 comments on commit 5480e34

Please sign in to comment.