[Archive Migration] xpack..saved_objects_management/spaces_integration (#113047)

This commit is contained in:
Tre 2021-10-01 11:51:15 -04:00 committed by GitHub
parent 753defe366
commit 33b501c5c7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 51 additions and 129 deletions

View file

@ -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

View file

@ -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