[EDR Workflows] Fix Insights.cy.ts test (#211904)

Closes https://github.com/elastic/kibana/issues/211895

Include `Elastic-Inference-Rainbow-Sprinkles` introduced with
https://github.com/elastic/kibana/pull/210953 as an exempt from delete
connectors task.
This commit is contained in:
Konrad Szwarc 2025-02-20 18:23:05 +01:00 committed by GitHub
parent 30c4275462
commit b12b089688
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 3 deletions

View file

@ -39,8 +39,7 @@ const {
validateErrorToastContent,
} = workflowInsightsSelectors;
// Failing: See https://github.com/elastic/kibana/issues/211894
describe.skip(
describe(
'Workflow Insights',
{
tags: [

View file

@ -17,6 +17,8 @@ import {
} from '../../../../common/endpoint/constants';
const INTERNAL_CLOUD_CONNECTORS = ['Elastic-Cloud-SMTP'];
const INTERNAL_INFERENCE_CONNECTORS = ['Elastic-Inference-Rainbow-Sprinkles'];
const INTERNAL_CONNECTORS = [...INTERNAL_CLOUD_CONNECTORS, ...INTERNAL_INFERENCE_CONNECTORS];
export const createBedrockAIConnector = (connectorName?: string) =>
request<ConnectorResponse>({
@ -48,7 +50,7 @@ export const deleteConnectors = () => {
return connector.id;
});
ids.forEach((id) => {
if (!INTERNAL_CLOUD_CONNECTORS.includes(id)) {
if (!INTERNAL_CONNECTORS.includes(id)) {
request({
method: 'DELETE',
url: `api/actions/connector/${id}`,