[Archive Migration] split message_with_newline out of esArchive (#133648)

* split Kibana saved object out of esArchive

* remove .only

* also unload the esArchive

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
This commit is contained in:
Lee Drengenberg 2022-06-07 08:47:27 -05:00 committed by GitHub
parent 3e8778a78a
commit 795a3051d7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 19 additions and 15 deletions

View file

@ -21,15 +21,20 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
before(async function () {
await security.testUser.setRoles(['kibana_admin', 'kibana_message_with_newline']);
await esArchiver.loadIfNeeded('test/functional/fixtures/es_archiver/message_with_newline');
await kibanaServer.importExport.load(
'test/functional/fixtures/kbn_archiver/message_with_newline.json'
);
await kibanaServer.uiSettings.replace({
defaultIndex: 'newline-test',
'doc_table:legacy': true,
});
await PageObjects.common.navigateToApp('discover');
});
after(async () => {
await security.testUser.restoreDefaults();
await esArchiver.unload('test/functional/fixtures/es_archiver/message_with_newline');
await kibanaServer.savedObjects.cleanStandardList();
await kibanaServer.uiSettings.unset('defaultIndex');
await kibanaServer.uiSettings.unset('doc_table:legacy');
});

View file

@ -1,18 +1,3 @@
{
"type": "doc",
"value": {
"id": "index-pattern:newline-test",
"index": ".kibana",
"source": {
"index-pattern": {
"fields": "[]",
"title": "newline-test"
},
"type": "index-pattern"
}
}
}
{
"type": "doc",
"value": {

View file

@ -0,0 +1,14 @@
{
"attributes": {
"fields": "[]",
"title": "newline-test"
},
"coreMigrationVersion": "8.4.0",
"id": "newline-test",
"migrationVersion": {
"index-pattern": "8.0.0"
},
"references": [],
"type": "index-pattern",
"version": "WzEzLDJd"
}