From 3ebc285c8a9550fa0ac1f74138e3627956d73f02 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patryk=20Kopyci=C5=84ski?= Date: Tue, 5 Dec 2023 10:33:22 +0000 Subject: [PATCH] Fix Cypress FTR config support (#172553) ## Summary Fixes race condition between --- .../detection_engine/rule_creation/threshold_rule.cy.ts | 6 +++++- .../threshold_rule_serverless_essentials.cy.ts | 6 +++++- .../detection_engine/rule_edit/threshold_rule.cy.ts | 6 +++++- 3 files changed, 15 insertions(+), 3 deletions(-) diff --git a/x-pack/test/security_solution_cypress/cypress/e2e/detection_response/detection_engine/rule_creation/threshold_rule.cy.ts b/x-pack/test/security_solution_cypress/cypress/e2e/detection_response/detection_engine/rule_creation/threshold_rule.cy.ts index 13c8965bf3e89..074670221bedd 100644 --- a/x-pack/test/security_solution_cypress/cypress/e2e/detection_response/detection_engine/rule_creation/threshold_rule.cy.ts +++ b/x-pack/test/security_solution_cypress/cypress/e2e/detection_response/detection_engine/rule_creation/threshold_rule.cy.ts @@ -74,7 +74,11 @@ describe( tags: ['@ess', '@serverless'], env: { ftrConfig: { - enableExperimental: ['alertSuppressionForThresholdRuleEnabled'], + kbnServerArgs: [ + `--xpack.securitySolution.enableExperimental=${JSON.stringify([ + 'alertSuppressionForThresholdRuleEnabled', + ])}`, + ], }, }, }, diff --git a/x-pack/test/security_solution_cypress/cypress/e2e/detection_response/detection_engine/rule_creation/threshold_rule_serverless_essentials.cy.ts b/x-pack/test/security_solution_cypress/cypress/e2e/detection_response/detection_engine/rule_creation/threshold_rule_serverless_essentials.cy.ts index b990edbd0461c..5b8ec27e2c891 100644 --- a/x-pack/test/security_solution_cypress/cypress/e2e/detection_response/detection_engine/rule_creation/threshold_rule_serverless_essentials.cy.ts +++ b/x-pack/test/security_solution_cypress/cypress/e2e/detection_response/detection_engine/rule_creation/threshold_rule_serverless_essentials.cy.ts @@ -23,7 +23,11 @@ describe( { product_line: 'security', product_tier: 'essentials' }, { product_line: 'endpoint', product_tier: 'essentials' }, ], - enableExperimental: ['alertSuppressionForThresholdRuleEnabled'], + kbnServerArgs: [ + `--xpack.securitySolution.enableExperimental=${JSON.stringify([ + 'alertSuppressionForThresholdRuleEnabled', + ])}`, + ], }, }, }, diff --git a/x-pack/test/security_solution_cypress/cypress/e2e/detection_response/detection_engine/rule_edit/threshold_rule.cy.ts b/x-pack/test/security_solution_cypress/cypress/e2e/detection_response/detection_engine/rule_edit/threshold_rule.cy.ts index 2827417d62442..5eed825f99ada 100644 --- a/x-pack/test/security_solution_cypress/cypress/e2e/detection_response/detection_engine/rule_edit/threshold_rule.cy.ts +++ b/x-pack/test/security_solution_cypress/cypress/e2e/detection_response/detection_engine/rule_edit/threshold_rule.cy.ts @@ -43,7 +43,11 @@ describe( tags: ['@ess', '@serverless'], env: { ftrConfig: { - enableExperimental: ['alertSuppressionForThresholdRuleEnabled'], + kbnServerArgs: [ + `--xpack.securitySolution.enableExperimental=${JSON.stringify([ + 'alertSuppressionForThresholdRuleEnabled', + ])}`, + ], }, }, },