File tree Expand file tree Collapse file tree
plugins/fleet/common/constants
test/fleet_api_integration Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ export const FLEET_SERVER_PACKAGE = 'fleet_server';
1515export 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
Original file line number Diff line number Diff 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}
Original file line number Diff line number Diff 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.
1717export const dockerImage =
18- 'docker.elastic.co/package-registry/distribution:5314869e2f6bc01d37b8652f7bda89248950b3a4 ' ;
18+ 'docker.elastic.co/package-registry/distribution:99dadb957d76b704637150d34a7219345cc0aeef ' ;
1919
2020export default async function ( { readConfigFile } : FtrConfigProviderContext ) {
2121 const xPackAPITestsConfig = await readConfigFile ( require . resolve ( '../api_integration/config.ts' ) ) ;
You can’t perform that action at this time.
0 commit comments