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

[Archive Migration] Kbn archiver management #133675

Merged
merged 4 commits into from
Jun 7, 2022
Merged
Show file tree
Hide file tree
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
5 changes: 2 additions & 3 deletions test/functional/apps/management/_import_objects.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,22 +17,21 @@ function uniq<T>(input: T[]): T[] {

export default function ({ getService, getPageObjects }: FtrProviderContext) {
const kibanaServer = getService('kibanaServer');
const esArchiver = getService('esArchiver');
const PageObjects = getPageObjects(['common', 'settings', 'header', 'savedObjects']);
const testSubjects = getService('testSubjects');
const log = getService('log');

describe('import objects', function describeIndexTests() {
describe('.ndjson file', () => {
beforeEach(async function () {
await esArchiver.load('test/functional/fixtures/es_archiver/management');
await kibanaServer.importExport.load('test/functional/fixtures/kbn_archiver/management');
await kibanaServer.uiSettings.replace({});
await PageObjects.settings.navigateTo();
await PageObjects.settings.clickKibanaSavedObjects();
});

afterEach(async function () {
await esArchiver.unload('test/functional/fixtures/es_archiver/management');
await kibanaServer.savedObjects.cleanStandardList();
});

it('should import saved objects', async function () {
Expand Down
5 changes: 2 additions & 3 deletions test/functional/apps/management/_scripted_fields_filter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,21 +14,20 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
const retry = getService('retry');
const log = getService('log');
const browser = getService('browser');
const esArchiver = getService('esArchiver');
const PageObjects = getPageObjects(['settings']);

describe('filter scripted fields', function describeIndexTests() {
before(async function () {
// delete .kibana index and then wait for Kibana to re-create it
await browser.setWindowSize(1200, 800);
await esArchiver.load('test/functional/fixtures/es_archiver/management');
await kibanaServer.importExport.load('test/functional/fixtures/kbn_archiver/management');
await kibanaServer.uiSettings.replace({
defaultIndex: 'f1e4c910-a2e6-11e7-bb30-233be9be6a15',
});
});

after(async function () {
await esArchiver.load('test/functional/fixtures/es_archiver/empty_kibana');
await kibanaServer.savedObjects.cleanStandardList();
});

const scriptedPainlessFieldName = 'ram_pain1';
Expand Down
Binary file not shown.
205 changes: 0 additions & 205 deletions test/functional/fixtures/es_archiver/management/mappings.json

This file was deleted.

Loading