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 @@ -2153,8 +2153,7 @@ export default function (providerContext: FtrProviderContext) {
21532153 } ) ;
21542154 } ) ;
21552155
2156- // FLAKY: https://github.com/elastic/kibana/issues/213370
2157- describe . skip ( 'POST /internal/fleet/agent_and_package_policies' , ( ) => {
2156+ describe ( 'POST /internal/fleet/agent_and_package_policies' , ( ) => {
21582157 before ( async ( ) => {
21592158 await esArchiver . load ( 'x-pack/platform/test/fixtures/es_archives/fleet/empty_fleet_server' ) ;
21602159 await kibanaServer . savedObjects . cleanStandardList ( ) ;
@@ -2268,11 +2267,13 @@ export default function (providerContext: FtrProviderContext) {
22682267 . expect ( 200 ) ;
22692268
22702269 expect ( createdPolicy . id ) . to . eql ( requestBody . id ) ;
2271- expect ( createdPolicy . package_policies [ 0 ] . id ) . to . eql ( requestBody . package_policies [ 0 ] . id ) ;
2270+ expect ( createdPolicy . package_policies . map ( ( policy : any ) => policy . id ) . sort ( ) ) . to . eql ( [
2271+ 'test-package-policy-with-id' ,
2272+ 'test-package-policy-with-id-2' ,
2273+ ] ) ;
22722274 expect ( createdPolicy . package_policies [ 0 ] . policy_ids ) . to . eql (
22732275 requestBody . package_policies [ 0 ] . policy_ids
22742276 ) ;
2275- expect ( createdPolicy . package_policies [ 1 ] . id ) . to . eql ( requestBody . package_policies [ 1 ] . id ) ;
22762277 expect ( createdPolicy . package_policies [ 1 ] . policy_ids ) . to . eql (
22772278 requestBody . package_policies [ 1 ] . policy_ids
22782279 ) ;
You can’t perform that action at this time.
0 commit comments