Skip to content

Commit

Permalink
Modify Unit Test to Support Alert Suppression for EQL Sequences (#4457)
Browse files Browse the repository at this point in the history
(cherry picked from commit aded9de)
  • Loading branch information
shashank-elastic authored and tradebot-elastic committed Feb 13, 2025
1 parent 37f9552 commit 7eec163
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "detection_rules"
version = "0.4.10"
version = "0.4.11"
description = "Detection Rules is the home for rules used by Elastic Security. This repository is used for the development, maintenance, testing, validation, and release of rules for Elastic Security’s Detection Engine."
readme = "README.md"
requires-python = ">=3.12"
Expand Down
5 changes: 3 additions & 2 deletions tests/test_all_rules.py
Original file line number Diff line number Diff line change
Expand Up @@ -1449,8 +1449,9 @@ def test_group_field_in_schemas(self):
self.fail(f"{self.rule_str(rule)} alert suppression field {fld} not \
found in ECS, Beats, or non-ecs schemas")

@unittest.skipIf(PACKAGE_STACK_VERSION < Version.parse("8.14.0"),
"Test only applicable to 8.14+ stacks for eql non-sequence rule alert suppression feature.")
@unittest.skipIf(PACKAGE_STACK_VERSION < Version.parse("8.14.0") or # noqa: W504
PACKAGE_STACK_VERSION >= Version.parse("8.18.0"), # noqa: W504
"Test is applicable to 8.14 --> 8.17 stacks for eql non-sequence rule alert suppression feature.")
def test_eql_non_sequence_support_only(self):
for rule in self.all_rules:
if (
Expand Down

0 comments on commit 7eec163

Please sign in to comment.