Skip to content

Commit

Permalink
[Fleet] fix multi space test (elastic#162113)
Browse files Browse the repository at this point in the history
## Summary

Fixes elastic#161624

Test failed due to an unrelated endpoint installation error, loading
empty ES to make sure endpoint doesn't cause trouble, as the test
installs system integration.
  • Loading branch information
juliaElastic authored and Devon Thomson committed Aug 1, 2023
1 parent 7b6d2d1 commit 93f8f77
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ export default function (providerContext: FtrProviderContext) {
const kibanaServer = getService('kibanaServer');
const supertest = getService('supertest');
const dockerServers = getService('dockerServers');
const esArchiver = getService('esArchiver');
const server = dockerServers.get('registry');
const pkgName = 'system';
const pkgVersion = '1.27.0';
Expand Down Expand Up @@ -72,6 +73,7 @@ export default function (providerContext: FtrProviderContext) {

before(async () => {
if (!server.enabled) return;
await esArchiver.load('x-pack/test/functional/es_archives/fleet/empty_fleet_server');
await installPackage(pkgName, pkgVersion);

await createSpace(testSpaceId);
Expand All @@ -81,6 +83,7 @@ export default function (providerContext: FtrProviderContext) {

after(async () => {
await deleteSpace(testSpaceId);
await esArchiver.unload('x-pack/test/functional/es_archives/fleet/empty_fleet_server');
});

it('should install kibana assets', async function () {
Expand Down

0 comments on commit 93f8f77

Please sign in to comment.