[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) {
|
export default function ({ getPageObjects, getService }: FtrProviderContext) {
|
||||||
const esArchiver = getService('esArchiver');
|
|
||||||
const PageObjects = getPageObjects([
|
const PageObjects = getPageObjects([
|
||||||
'common',
|
'common',
|
||||||
'security',
|
'security',
|
||||||
|
@ -22,6 +21,8 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) {
|
||||||
'settings',
|
'settings',
|
||||||
]);
|
]);
|
||||||
const find = getService('find');
|
const find = getService('find');
|
||||||
|
const kibanaServer = getService('kibanaServer');
|
||||||
|
const spacesService = getService('spaces');
|
||||||
|
|
||||||
const spaceId = 'space_1';
|
const spaceId = 'space_1';
|
||||||
|
|
||||||
|
@ -32,15 +33,15 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) {
|
||||||
|
|
||||||
describe('spaces integration', () => {
|
describe('spaces integration', () => {
|
||||||
before(async () => {
|
before(async () => {
|
||||||
await esArchiver.load(
|
await spacesService.create({ id: spaceId, name: spaceId });
|
||||||
'x-pack/test/functional/es_archives/saved_objects_management/spaces_integration'
|
await kibanaServer.importExport.load(
|
||||||
|
'x-pack/test/functional/fixtures/kbn_archiver/saved_objects_management/spaces_integration',
|
||||||
|
{ space: spaceId }
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|
||||||
after(async () => {
|
after(async () => {
|
||||||
await esArchiver.unload(
|
await spacesService.delete(spaceId);
|
||||||
'x-pack/test/functional/es_archives/saved_objects_management/spaces_integration'
|
|
||||||
);
|
|
||||||
});
|
});
|
||||||
|
|
||||||
beforeEach(async () => {
|
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…
Reference in a new issue