mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
[Archive Migration] xpack..saved_objects_management/spaces_integration (#113047)
This commit is contained in:
parent
753defe366
commit
33b501c5c7
4 changed files with 51 additions and 129 deletions
|
@ -13,7 +13,6 @@ const getSpacePrefix = (spaceId: string) => {
|
|||
};
|
||||
|
||||
export default function ({ getPageObjects, getService }: FtrProviderContext) {
|
||||
const esArchiver = getService('esArchiver');
|
||||
const PageObjects = getPageObjects([
|
||||
'common',
|
||||
'security',
|
||||
|
@ -22,6 +21,8 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) {
|
|||
'settings',
|
||||
]);
|
||||
const find = getService('find');
|
||||
const kibanaServer = getService('kibanaServer');
|
||||
const spacesService = getService('spaces');
|
||||
|
||||
const spaceId = 'space_1';
|
||||
|
||||
|
@ -32,15 +33,15 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) {
|
|||
|
||||
describe('spaces integration', () => {
|
||||
before(async () => {
|
||||
await esArchiver.load(
|
||||
'x-pack/test/functional/es_archives/saved_objects_management/spaces_integration'
|
||||
await spacesService.create({ id: spaceId, name: spaceId });
|
||||
await kibanaServer.importExport.load(
|
||||
'x-pack/test/functional/fixtures/kbn_archiver/saved_objects_management/spaces_integration',
|
||||
{ space: spaceId }
|
||||
);
|
||||
});
|
||||
|
||||
after(async () => {
|
||||
await esArchiver.unload(
|
||||
'x-pack/test/functional/es_archives/saved_objects_management/spaces_integration'
|
||||
);
|
||||
await spacesService.delete(spaceId);
|
||||
});
|
||||
|
||||
beforeEach(async () => {
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -1,27 +0,0 @@
|
|||
{
|
||||
"type": "index",
|
||||
"value": {
|
||||
"aliases": {
|
||||
".kibana_$KIBANA_PACKAGE_VERSION": {},
|
||||
".kibana": {}
|
||||
},
|
||||
"index": ".kibana_$KIBANA_PACKAGE_VERSION_001",
|
||||
"mappings": {
|
||||
"dynamic": "false",
|
||||
"properties": {
|
||||
"type": { "type": "keyword" },
|
||||
"migrationVersion": {
|
||||
"dynamic": "true",
|
||||
"type": "object"
|
||||
}
|
||||
}
|
||||
},
|
||||
"settings": {
|
||||
"index": {
|
||||
"auto_expand_replicas": "0-1",
|
||||
"number_of_replicas": "0",
|
||||
"number_of_shards": "1"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
File diff suppressed because one or more lines are too long
Loading…
Add table
Add a link
Reference in a new issue