Skip to content

Commit aded9de

Browse files
Modify Unit Test to Support Alert Suppression for EQL Sequences (#4457)
1 parent 5155f47 commit aded9de

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "detection_rules"
3-
version = "0.4.10"
3+
version = "0.4.11"
44
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."
55
readme = "README.md"
66
requires-python = ">=3.12"

tests/test_all_rules.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1449,8 +1449,9 @@ def test_group_field_in_schemas(self):
14491449
self.fail(f"{self.rule_str(rule)} alert suppression field {fld} not \
14501450
found in ECS, Beats, or non-ecs schemas")
14511451

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

0 commit comments

Comments
 (0)