From a104d8b7f0c980db14b03d9ed5bc48c1e2fca566 Mon Sep 17 00:00:00 2001 From: Vitalii Dmyterko <92328789+vitaliidm@users.noreply.github.com> Date: Fri, 27 Jun 2025 11:46:02 +0100 Subject: [PATCH] [Security Solution][Detection Engine] fixes docs version reference in actions test --- .../trial_license_complete_tier/check_privileges.ts | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/x-pack/test/security_solution_api_integration/test_suites/detections_response/detection_engine/actions/trial_license_complete_tier/check_privileges.ts b/x-pack/test/security_solution_api_integration/test_suites/detections_response/detection_engine/actions/trial_license_complete_tier/check_privileges.ts index a2285042bb8c7..60c3e7fd7b9b8 100644 --- a/x-pack/test/security_solution_api_integration/test_suites/detections_response/detection_engine/actions/trial_license_complete_tier/check_privileges.ts +++ b/x-pack/test/security_solution_api_integration/test_suites/detections_response/detection_engine/actions/trial_license_complete_tier/check_privileges.ts @@ -85,7 +85,10 @@ export default ({ getService }: FtrProviderContext) => { // TODO: https://github.com/elastic/kibana/pull/121644 clean up, make type-safe expect(body?.execution_summary?.last_execution.message).to.contain( - `This rule's API key is unable to access all indices that match the ["${index[0]}"] pattern. To learn how to update and manage API keys, refer to https://www.elastic.co/guide/en/kibana/current/alerting-setup.html#alerting-authorization.` + `This rule's API key is unable to access all indices that match the ["${index[0]}"] pattern. To learn how to update and manage API keys, refer to https://www.elastic.co/guide/en/kibana/` + ); + expect(body?.execution_summary?.last_execution.message).to.contain( + '/alerting-setup.html#alerting-authorization.' ); await deleteUserAndRole(getService, ROLES.detections_admin); @@ -165,8 +168,11 @@ export default ({ getService }: FtrProviderContext) => { .expect(200); // TODO: https://github.com/elastic/kibana/pull/121644 clean up, make type-safe - expect(body?.execution_summary?.last_execution.message).to.eql( - `This rule's API key is unable to access all indices that match the ["${index[0]}"] pattern. To learn how to update and manage API keys, refer to https://www.elastic.co/guide/en/kibana/current/alerting-setup.html#alerting-authorization.` + expect(body?.execution_summary?.last_execution.message).to.contain( + `This rule's API key is unable to access all indices that match the ["${index[0]}"] pattern. To learn how to update and manage API keys, refer to https://www.elastic.co/guide/en/kibana/` + ); + expect(body?.execution_summary?.last_execution.message).to.contain( + '/alerting-setup.html#alerting-authorization.' ); await deleteUserAndRole(getService, ROLES.detections_admin);