File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed 
x-pack/platform/test/fleet_api_integration/apis/agent_policy Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -2287,8 +2287,7 @@ export default function (providerContext: FtrProviderContext) {
22872287      } ) ; 
22882288    } ) ; 
22892289
2290-     // FLAKY: https://github.com/elastic/kibana/issues/213370 
2291-     describe . skip ( 'POST /internal/fleet/agent_and_package_policies' ,  ( )  =>  { 
2290+     describe ( 'POST /internal/fleet/agent_and_package_policies' ,  ( )  =>  { 
22922291      before ( async  ( )  =>  { 
22932292        await  esArchiver . load ( 'x-pack/platform/test/fixtures/es_archives/fleet/empty_fleet_server' ) ; 
22942293        await  kibanaServer . savedObjects . cleanStandardList ( ) ; 
@@ -2402,11 +2401,13 @@ export default function (providerContext: FtrProviderContext) {
24022401          . expect ( 200 ) ; 
24032402
24042403        expect ( createdPolicy . id ) . to . eql ( requestBody . id ) ; 
2405-         expect ( createdPolicy . package_policies [ 0 ] . id ) . to . eql ( requestBody . package_policies [ 0 ] . id ) ; 
2404+         expect ( createdPolicy . package_policies . map ( ( policy : any )  =>  policy . id ) . sort ( ) ) . to . eql ( [ 
2405+           'test-package-policy-with-id' , 
2406+           'test-package-policy-with-id-2' , 
2407+         ] ) ; 
24062408        expect ( createdPolicy . package_policies [ 0 ] . policy_ids ) . to . eql ( 
24072409          requestBody . package_policies [ 0 ] . policy_ids 
24082410        ) ; 
2409-         expect ( createdPolicy . package_policies [ 1 ] . id ) . to . eql ( requestBody . package_policies [ 1 ] . id ) ; 
24102411        expect ( createdPolicy . package_policies [ 1 ] . policy_ids ) . to . eql ( 
24112412          requestBody . package_policies [ 1 ] . policy_ids 
24122413        ) ; 
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments