Skip to content

Commit

Permalink
[Archive Migration] split message_with_newline out of esArchive (#133648
Browse files Browse the repository at this point in the history
)

* split Kibana saved object out of esArchive

* remove .only

* also unload the esArchive

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
  • Loading branch information
Lee Drengenberg and kibanamachine committed Jun 7, 2022
1 parent 3e8778a commit 795a305
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 15 deletions.
5 changes: 5 additions & 0 deletions test/functional/apps/discover/_doc_table_newline.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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');
});
Expand Down
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
14 changes: 14 additions & 0 deletions test/functional/fixtures/kbn_archiver/message_with_newline.json
Original file line number Diff line number Diff line change
@@ -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"
}

0 comments on commit 795a305

Please sign in to comment.