From 743217287c30797b0f9b10715a8c7c0c1434284c Mon Sep 17 00:00:00 2001 From: Georgii Gorbachev Date: Fri, 7 Mar 2025 18:44:49 +0100 Subject: [PATCH] Remove scenarios for the overwrite request parameter --- .../prebuilt_rules/prebuilt_rule_import.md | 32 ------------------- 1 file changed, 32 deletions(-) diff --git a/x-pack/solutions/security/plugins/security_solution/docs/testing/test_plans/detection_response/prebuilt_rules/prebuilt_rule_import.md b/x-pack/solutions/security/plugins/security_solution/docs/testing/test_plans/detection_response/prebuilt_rules/prebuilt_rule_import.md index 1abee97def88e..5aceab126c43f 100644 --- a/x-pack/solutions/security/plugins/security_solution/docs/testing/test_plans/detection_response/prebuilt_rules/prebuilt_rule_import.md +++ b/x-pack/solutions/security/plugins/security_solution/docs/testing/test_plans/detection_response/prebuilt_rules/prebuilt_rule_import.md @@ -62,9 +62,6 @@ https://marketplace.visualstudio.com/items?itemName=yzhang.markdown-all-in-one - [Scenario: Importing a prebuilt rule with a matching `rule_id` but missing a `version` field](#scenario-importing-a-prebuilt-rule-with-a-matching-rule_id-but-missing-a-version-field) - [Scenario: Importing a new custom rule missing a `version` field](#scenario-importing-a-new-custom-rule-missing-a-version-field) - [Scenario: Importing an existing custom rule missing a `version` field](#scenario-importing-an-existing-custom-rule-missing-a-version-field) - - [Handling request parameters: `overwrite` flag](#handling-request-parameters-overwrite-flag) - - [Scenario: Importing a rule with `overwrite` flag set to true](#scenario-importing-a-rule-with-overwrite-flag-set-to-true) - - [Scenario: Importing a rule with `overwrite` flag set to false](#scenario-importing-a-rule-with-overwrite-flag-set-to-false) - [Licensing](#licensing) ## Useful information @@ -545,35 +542,6 @@ And the updated rule should be custom And the updated rule's "version" field should stay unchanged ``` -### Handling request parameters: `overwrite` flag - -#### Scenario: Importing a rule with `overwrite` flag set to true - -**Automation**: 1 integration test. - -```Gherkin -Given the import payload contains a rule -And its rule_id matches a rule_id of one of the installed rules -And the overwrite flag is set to true -When the user imports the rule -Then the rule should be overwritten -And the ruleSource should be based on rule_id and version -``` - -#### Scenario: Importing a rule with `overwrite` flag set to false - -**Automation**: 1 integration test. - -```Gherkin -Given the import payload contains a rule -And its rule_id matches a rule_id of one of the installed rules -And the overwrite flag is set to false -When the user imports the rule -Then the import should be rejected with a message "rule_id already exists" - -CASE: should have the same outcome for all rule types -``` - ### Licensing TODO: describe licensing restrictions that apply to rule import.