File tree Expand file tree Collapse file tree
x-pack/test/api_integration/services Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44 * you may not use this file except in compliance with the Elastic License.
55 */
66import { FtrProviderContext } from '../ftr_provider_context' ;
7- import { setupRouteService , fleetSetupRouteService } from '../../../plugins/ingest_manager/common' ;
7+ import { fleetSetupRouteService } from '../../../plugins/ingest_manager/common' ;
88
99export function IngestManagerProvider ( { getService } : FtrProviderContext ) {
1010 const supertest = getService ( 'supertest' ) ;
1111 return {
1212 async setup ( ) {
1313 const headers = { accept : 'application/json' , 'kbn-xsrf' : 'some-xsrf-token' } ;
1414
15- const { body } = await supertest
16- . get ( fleetSetupRouteService . getFleetSetupPath ( ) )
15+ await supertest
16+ . post ( fleetSetupRouteService . postFleetSetupPath ( ) )
1717 . set ( headers )
18+ . send ( { forceRecreate : true } )
1819 . expect ( 200 ) ;
19-
20- if ( ! body . isInitialized ) {
21- await supertest . post ( setupRouteService . getSetupPath ( ) ) . set ( headers ) . expect ( 200 ) ;
22- }
2320 } ,
2421 } ;
2522}
You can’t perform that action at this time.
0 commit comments