From 0b0cd9679559c61d63dd2248f7c57a814a8d7b1f Mon Sep 17 00:00:00 2001 From: Jen Huang Date: Tue, 21 Apr 2026 01:06:57 -0700 Subject: [PATCH] [UII] Fix cypress ml tests (#264584) ## Summary Fixes this test that has been failing CI on main and 9.4 backports: ``` Fleet Cypress Tests #4 / Assets - Real API for integration with ML and transforms should install integration with ML module & transforms ``` Cause was due to new version of lmd published ([lmd-3.0.0](https://github.com/elastic/integrations/pull/17626)) that caused index template and transform names to be changed. (cherry picked from commit fa12076f23912b4114d44e30196f20731e066511) --- ...s_integration_with_ml_and_transforms.cy.ts | 26 +++++++++---------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/x-pack/platform/plugins/shared/fleet/cypress/e2e/assets_integration_with_ml_and_transforms.cy.ts b/x-pack/platform/plugins/shared/fleet/cypress/e2e/assets_integration_with_ml_and_transforms.cy.ts index 47b37ef948931..bb39329d3a917 100644 --- a/x-pack/platform/plugins/shared/fleet/cypress/e2e/assets_integration_with_ml_and_transforms.cy.ts +++ b/x-pack/platform/plugins/shared/fleet/cypress/e2e/assets_integration_with_ml_and_transforms.cy.ts @@ -24,22 +24,22 @@ interface Asset { }>; } const integrationWithML = 'lmd'; -const destinationIndex = 'ml-rdp-lmd'; +const destinationIndex = 'ml-rdp-lmd_ea'; const assets: Asset[] = [ { type: 'index_template', - expected: ['logs-lmd.pivot_transform-template'], + expected: ['logs-lmd.pivot_transform_ea-template'], links: [ { - text: 'logs-lmd.pivot_transform-template', + text: 'logs-lmd.pivot_transform_ea-template', expectedEsApi: - '/api/index_management/index_templates/logs-lmd.pivot_transform-template?legacy=false', + '/api/index_management/index_templates/logs-lmd.pivot_transform_ea-template?legacy=false', expectedResponseStatus: 200, expectedBody: (resp) => { const body = resp.body; expect(body.composedOf).to.deep.equal([ - 'logs-lmd.pivot_transform-template@package', - 'logs-lmd.pivot_transform-template@custom', + 'logs-lmd.pivot_transform_ea-template@package', + 'logs-lmd.pivot_transform_ea-template@custom', ]); expect(body.indexPatterns).to.deep.equal([destinationIndex]); }, @@ -49,20 +49,20 @@ const assets: Asset[] = [ { type: 'component_template', expected: [ - 'logs-lmd.pivot_transform-template@custom', - 'logs-lmd.pivot_transform-template@package', + 'logs-lmd.pivot_transform_ea-template@custom', + 'logs-lmd.pivot_transform_ea-template@package', ], links: [ { - text: 'logs-lmd.pivot_transform-template@package', + text: 'logs-lmd.pivot_transform_ea-template@package', expectedEsApi: - '/api/index_management/component_templates/logs-lmd.pivot_transform-template%40package', + '/api/index_management/component_templates/logs-lmd.pivot_transform_ea-template%40package', expectedResponseStatus: 200, }, { - text: 'logs-lmd.pivot_transform-template@custom', + text: 'logs-lmd.pivot_transform_ea-template@custom', expectedEsApi: - '/api/index_management/component_templates/logs-lmd.pivot_transform-template%40custom', + '/api/index_management/component_templates/logs-lmd.pivot_transform_ea-template%40custom', // @custom should be defined by user if needed // therefore should not exist when package is first installed // but it should be defined in the index template @@ -72,7 +72,7 @@ const assets: Asset[] = [ }, { type: 'transform', - expected: ['logs-lmd.pivot_transform'], + expected: ['logs-lmd.pivot_transform_ea'], }, { type: 'ml-module',