Skip to content

Commit

Permalink
Migrating scroll_count esArchiver to kbnArchiver (#136535)
Browse files Browse the repository at this point in the history
  • Loading branch information
bhavyarm committed Jul 19, 2022
1 parent ece51f2 commit 6832a16
Show file tree
Hide file tree
Showing 4 changed files with 185 additions and 715 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,22 @@ const defaultTypes = ['visualization', 'index-pattern', 'search', 'dashboard'];

export default function ({ getService }: FtrProviderContext) {
const supertest = getService('supertest') as SuperTest<Test>;
const kibanaServer = getService('kibanaServer');
const esArchiver = getService('esArchiver');

describe('scroll_count', () => {
describe('with less than 10k objects', () => {
before(async () => {
await esArchiver.load(
'test/api_integration/fixtures/es_archiver/management/saved_objects/scroll_count'
await kibanaServer.savedObjects.cleanStandardList();
await kibanaServer.importExport.load(
'test/api_integration/fixtures/kbn_archiver/saved_objects/scroll_count.json'
);
});
after(async () => {
await esArchiver.unload(
'test/api_integration/fixtures/es_archiver/management/saved_objects/scroll_count'
await kibanaServer.importExport.unload(
'test/api_integration/fixtures/kbn_archiver/saved_objects/scroll_count.json'
);
await kibanaServer.savedObjects.cleanStandardList();
});

it('returns the count for each included types', async () => {
Expand Down

This file was deleted.

Loading

0 comments on commit 6832a16

Please sign in to comment.