[Archive Migration] x-pack..security/discover (#106896)

This commit is contained in:
Tre 2021-07-29 10:47:13 +01:00 committed by GitHub
parent 41f25a79b9
commit 46def3044e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 65 additions and 311 deletions

View file

@ -7,6 +7,7 @@
import expect from '@kbn/expect';
import { keyBy } from 'lodash';
export default function ({ getService, getPageObjects }) {
const PageObjects = getPageObjects([
'security',
@ -29,7 +30,9 @@ export default function ({ getService, getPageObjects }) {
log.debug('users');
await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/logstash_functional');
log.debug('load kibana index with default index pattern');
await esArchiver.load('x-pack/test/functional/es_archives/security/discover');
await kibanaServer.importExport.load(
'x-pack/test/functional/fixtures/kbn_archiver/security/discover'
);
await kibanaServer.uiSettings.replace({ defaultIndex: 'logstash-*' });
await PageObjects.settings.navigateTo();
});
@ -87,6 +90,9 @@ export default function ({ getService, getPageObjects }) {
after(async function () {
await PageObjects.security.forceLogout();
await kibanaServer.importExport.unload(
'x-pack/test/functional/fixtures/kbn_archiver/security/discover'
);
});
});
}

View file

@ -7,14 +7,17 @@
import expect from '@kbn/expect';
import { keyBy } from 'lodash';
export default function ({ getService, getPageObjects }) {
const PageObjects = getPageObjects(['security', 'settings', 'common', 'accountSetting']);
const log = getService('log');
const esArchiver = getService('esArchiver');
const kibanaServer = getService('kibanaServer');
describe('useremail', function () {
before(async () => {
await esArchiver.load('x-pack/test/functional/es_archives/security/discover');
await kibanaServer.importExport.load(
'x-pack/test/functional/fixtures/kbn_archiver/security/discover'
);
await PageObjects.settings.navigateTo();
await PageObjects.security.clickElasticsearchUsers();
});
@ -55,6 +58,9 @@ export default function ({ getService, getPageObjects }) {
after(async function () {
await PageObjects.security.forceLogout();
await kibanaServer.importExport.unload(
'x-pack/test/functional/fixtures/kbn_archiver/security/discover'
);
});
});
}

View file

@ -1,308 +0,0 @@
{
"type": "index",
"value": {
"aliases": {
".kibana": {}
},
"index": ".kibana_1",
"mappings": {
"properties": {
"config": {
"dynamic": "true",
"properties": {
"buildNum": {
"type": "keyword"
}
}
},
"dashboard": {
"dynamic": "strict",
"properties": {
"description": {
"type": "text"
},
"hits": {
"type": "integer"
},
"kibanaSavedObjectMeta": {
"properties": {
"searchSourceJSON": {
"type": "text"
}
}
},
"optionsJSON": {
"type": "text"
},
"panelsJSON": {
"type": "text"
},
"refreshInterval": {
"properties": {
"display": {
"type": "keyword"
},
"pause": {
"type": "boolean"
},
"section": {
"type": "integer"
},
"value": {
"type": "integer"
}
}
},
"timeFrom": {
"type": "keyword"
},
"timeRestore": {
"type": "boolean"
},
"timeTo": {
"type": "keyword"
},
"title": {
"type": "text"
},
"uiStateJSON": {
"type": "text"
},
"version": {
"type": "integer"
}
}
},
"graph-workspace": {
"dynamic": "strict",
"properties": {
"description": {
"type": "text"
},
"kibanaSavedObjectMeta": {
"properties": {
"searchSourceJSON": {
"type": "text"
}
}
},
"numLinks": {
"type": "integer"
},
"numVertices": {
"type": "integer"
},
"title": {
"type": "text"
},
"version": {
"type": "integer"
},
"wsState": {
"type": "text"
}
}
},
"index-pattern": {
"dynamic": "strict",
"properties": {
"fieldFormatMap": {
"type": "text"
},
"fields": {
"type": "text"
},
"intervalName": {
"type": "keyword"
},
"notExpandable": {
"type": "boolean"
},
"sourceFilters": {
"type": "text"
},
"timeFieldName": {
"type": "keyword"
},
"title": {
"type": "text"
}
}
},
"search": {
"dynamic": "strict",
"properties": {
"columns": {
"type": "keyword"
},
"description": {
"type": "text"
},
"hits": {
"type": "integer"
},
"kibanaSavedObjectMeta": {
"properties": {
"searchSourceJSON": {
"type": "text"
}
}
},
"sort": {
"type": "keyword"
},
"title": {
"type": "text"
},
"version": {
"type": "integer"
}
}
},
"server": {
"dynamic": "strict",
"properties": {
"uuid": {
"type": "keyword"
}
}
},
"space": {
"properties": {
"_reserved": {
"type": "boolean"
},
"color": {
"type": "keyword"
},
"description": {
"type": "text"
},
"disabledFeatures": {
"type": "keyword"
},
"initials": {
"type": "keyword"
},
"name": {
"fields": {
"keyword": {
"ignore_above": 2048,
"type": "keyword"
}
},
"type": "text"
}
}
},
"spaceId": {
"type": "keyword"
},
"timelion-sheet": {
"dynamic": "strict",
"properties": {
"description": {
"type": "text"
},
"hits": {
"type": "integer"
},
"kibanaSavedObjectMeta": {
"properties": {
"searchSourceJSON": {
"type": "text"
}
}
},
"timelion_chart_height": {
"type": "integer"
},
"timelion_columns": {
"type": "integer"
},
"timelion_interval": {
"type": "keyword"
},
"timelion_other_interval": {
"type": "keyword"
},
"timelion_rows": {
"type": "integer"
},
"timelion_sheet": {
"type": "text"
},
"title": {
"type": "text"
},
"version": {
"type": "integer"
}
}
},
"type": {
"type": "keyword"
},
"url": {
"dynamic": "strict",
"properties": {
"accessCount": {
"type": "long"
},
"accessDate": {
"type": "date"
},
"createDate": {
"type": "date"
},
"url": {
"fields": {
"keyword": {
"ignore_above": 2048,
"type": "keyword"
}
},
"type": "text"
}
}
},
"visualization": {
"dynamic": "strict",
"properties": {
"description": {
"type": "text"
},
"kibanaSavedObjectMeta": {
"properties": {
"searchSourceJSON": {
"type": "text"
}
}
},
"savedSearchId": {
"type": "keyword"
},
"title": {
"type": "text"
},
"uiStateJSON": {
"type": "text"
},
"version": {
"type": "integer"
},
"visState": {
"type": "text"
}
}
}
}
},
"settings": {
"index": {
"number_of_replicas": "1",
"number_of_shards": "1"
}
}
}
}

File diff suppressed because one or more lines are too long