Skip to content

Commit

Permalink
[Archive Migrations] x-pack-spaces-disabled_features (#136302)
Browse files Browse the repository at this point in the history
* [Archive Migrations] x-pack-spaces-disabled_features

Replaces the old es archive with kbn archive.
Change test to use new archive.

Helps with: #102552

* Cr fixup.  Use same archive, drop other.

* Drop original archive.
  • Loading branch information
wayneseymour authored Jul 18, 2022
1 parent 5bdcf43 commit 7f55a1a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 539 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -130,20 +130,23 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) {
});

describe('space with Visualize disabled', () => {
const customSpace = 'custom_space';
before(async () => {
// we need to load the following in every situation as deleting
// a space deletes all of the associated saved objects
await esArchiver.load('x-pack/test/functional/es_archives/spaces/disabled_features');
await spacesService.create({
id: 'custom_space',
name: 'custom_space',
id: customSpace,
name: customSpace,
disabledFeatures: ['visualize'],
});
await kibanaServer.importExport.load(
'x-pack/test/functional/fixtures/kbn_archiver/discover/feature_controls/custom_space',
{ space: customSpace }
);
});

after(async () => {
await spacesService.delete('custom_space');
await esArchiver.unload('x-pack/test/functional/es_archives/spaces/disabled_features');
await spacesService.delete(customSpace);
});

it('Does not show the "visualize" field button', async () => {
Expand Down
Loading

0 comments on commit 7f55a1a

Please sign in to comment.