File tree Expand file tree Collapse file tree 2 files changed +13
-15
lines changed
x-pack/platform/test/fleet_api_integration Expand file tree Collapse file tree 2 files changed +13
-15
lines changed Original file line number Diff line number Diff line change @@ -19,8 +19,7 @@ export default function ({ getService }: FtrProviderContext) {
1919 const mockAgentlessApiService = setupMockServer ( ) ;
2020 let elasticAgentpkgVersion : string ;
2121
22- // FLAKY: https://github.com/elastic/kibana/issues/170690
23- describe . skip ( 'fleet_list_agent' , ( ) => {
22+ describe ( 'fleet_list_agent' , ( ) => {
2423 let mockApiServer : http . Server ;
2524
2625 before ( async ( ) => {
@@ -316,18 +315,6 @@ export default function ({ getService }: FtrProviderContext) {
316315 } ) ;
317316
318317 it ( 'should not return agentless agents when showAgentless=false' , async ( ) => {
319- // Set up default Fleet Server host, needed during agentless agent creation
320- await supertest
321- . post ( `/api/fleet/fleet_server_hosts` )
322- . set ( 'kbn-xsrf' , 'xxxx' )
323- . send ( {
324- id : 'fleet-default-fleet-server-host' ,
325- name : 'Default' ,
326- is_default : true ,
327- host_urls : [ 'https://test.com:8080' , 'https://test.com:8081' ] ,
328- } )
329- . expect ( 200 ) ;
330-
331318 // Create an agentless agent policy
332319 const { body : policyRes } = await supertest
333320 . post ( '/api/fleet/agent_policies' )
Original file line number Diff line number Diff line change @@ -9,12 +9,23 @@ import type { FtrConfigProviderContext } from '@kbn/test';
99
1010export default async function ( { readConfigFile } : FtrConfigProviderContext ) {
1111 const baseFleetApiConfig = await readConfigFile ( require . resolve ( './config.base.ts' ) ) ;
12+ const baseConfig = baseFleetApiConfig . getAll ( ) ;
1213
1314 return {
14- ...baseFleetApiConfig . getAll ( ) ,
15+ ...baseConfig ,
1516 testFiles : [ require . resolve ( './apis/agents' ) ] ,
1617 junit : {
1718 reportName : 'X-Pack Fleet Agent API Integration Tests' ,
1819 } ,
20+ kbnTestServer : {
21+ ...baseConfig . kbnTestServer ,
22+ serverArgs : [
23+ ...baseConfig . kbnTestServer . serverArgs ,
24+ // Add cloud configuration specifically for agent tests (needed for agentless functionality in ESS)
25+ `--xpack.cloud.id="ftr_fake_cloud_id:aGVsbG8uY29tOjQ0MyRFUzEyM2FiYyRrYm4xMjNhYmM="` ,
26+ `--xpack.cloud.base_url="https://cloud.elastic.co"` ,
27+ `--xpack.cloud.deployment_url="/deployments/deploymentId"` ,
28+ ] ,
29+ } ,
1930 } ;
2031}
You can’t perform that action at this time.
0 commit comments