Skip to content

Commit fa3000c

Browse files
committed
[Fleet] Install Elastic Agent integration by default during setup (#91676)
1 parent d2a5a51 commit fa3000c

3 files changed

Lines changed: 16 additions & 1 deletion

File tree

x-pack/plugins/fleet/common/constants/epm.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ export const FLEET_SERVER_PACKAGE = 'fleet_server';
1515
export const requiredPackages = {
1616
System: 'system',
1717
Endpoint: 'endpoint',
18+
ElasticAgent: 'elastic_agent',
1819
} as const;
1920

2021
// these are currently identical. we can separate if they later diverge

x-pack/test/fleet_api_integration/apis/fleet_setup.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,5 +105,19 @@ export default function (providerContext: FtrProviderContext) {
105105
transient_metadata: { enabled: true },
106106
});
107107
});
108+
109+
it('should install default packages', async () => {
110+
await supertest.post(`/api/fleet/setup`).set('kbn-xsrf', 'xxxx').expect(200);
111+
112+
const { body: apiResponse } = await supertest
113+
.get(`/api/fleet/epm/packages?experimental=true`)
114+
.expect(200);
115+
const installedPackages = apiResponse.response
116+
.filter((p: any) => p.status === 'installed')
117+
.map((p: any) => p.name)
118+
.sort();
119+
120+
expect(installedPackages).to.eql(['elastic_agent', 'endpoint', 'system']);
121+
});
108122
});
109123
}

x-pack/test/fleet_api_integration/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import { defineDockerServersConfig } from '@kbn/test';
1515
// example: https://beats-ci.elastic.co/blue/organizations/jenkins/Ingest-manager%2Fpackage-storage/detail/snapshot/74/pipeline/257#step-302-log-1.
1616
// It should be updated any time there is a new Docker image published for the Snapshot Distribution of the Package Registry.
1717
export const dockerImage =
18-
'docker.elastic.co/package-registry/distribution:5314869e2f6bc01d37b8652f7bda89248950b3a4';
18+
'docker.elastic.co/package-registry/distribution:99dadb957d76b704637150d34a7219345cc0aeef';
1919

2020
export default async function ({ readConfigFile }: FtrConfigProviderContext) {
2121
const xPackAPITestsConfig = await readConfigFile(require.resolve('../api_integration/config.ts'));

0 commit comments

Comments
 (0)