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 @@ -2271,8 +2271,7 @@ export default function (providerContext: FtrProviderContext) {
22712271 } ) ;
22722272 } ) ;
22732273
2274- // FLAKY: https://github.com/elastic/kibana/issues/213370
2275- describe . skip ( 'POST /internal/fleet/agent_and_package_policies' , ( ) => {
2274+ describe ( 'POST /internal/fleet/agent_and_package_policies' , ( ) => {
22762275 before ( async ( ) => {
22772276 await esArchiver . load ( 'x-pack/platform/test/fixtures/es_archives/fleet/empty_fleet_server' ) ;
22782277 await kibanaServer . savedObjects . cleanStandardList ( ) ;
@@ -2386,11 +2385,13 @@ export default function (providerContext: FtrProviderContext) {
23862385 . expect ( 200 ) ;
23872386
23882387 expect ( createdPolicy . id ) . to . eql ( requestBody . id ) ;
2389- expect ( createdPolicy . package_policies [ 0 ] . id ) . to . eql ( requestBody . package_policies [ 0 ] . id ) ;
2388+ expect ( createdPolicy . package_policies . map ( ( policy : any ) => policy . id ) . sort ( ) ) . to . eql ( [
2389+ 'test-package-policy-with-id' ,
2390+ 'test-package-policy-with-id-2' ,
2391+ ] ) ;
23902392 expect ( createdPolicy . package_policies [ 0 ] . policy_ids ) . to . eql (
23912393 requestBody . package_policies [ 0 ] . policy_ids
23922394 ) ;
2393- expect ( createdPolicy . package_policies [ 1 ] . id ) . to . eql ( requestBody . package_policies [ 1 ] . id ) ;
23942395 expect ( createdPolicy . package_policies [ 1 ] . policy_ids ) . to . eql (
23952396 requestBody . package_policies [ 1 ] . policy_ids
23962397 ) ;
You can’t perform that action at this time.
0 commit comments