mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
[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:
parent
3e8778a78a
commit
795a3051d7
3 changed files with 19 additions and 15 deletions
|
@ -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');
|
||||
});
|
||||
|
|
|
@ -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": {
|
||||
|
|
|
@ -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"
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue