Skip to content

Commit 4abfea2

Browse files
shashank-elastictradebot-elastic
authored andcommitted
Skip unit test for protected prebuilt-rules on DAC env (#5323)
(cherry picked from commit 5db396f)
1 parent a7e8da7 commit 4abfea2

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
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 = "1.5.12"
3+
version = "1.5.13"
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: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1112,6 +1112,7 @@ def test_ml_integration_jobs_exist(self):
11121112
f"The following ({len(failures)}) rules are missing a valid `machine_learning_job_id`:\n{err_msg}"
11131113
)
11141114

1115+
@unittest.skipIf(os.environ.get("CUSTOM_RULES_DIR"), "Skipping test for custom rules.")
11151116
def test_preserve_upstream_protected_rule_id_name(self):
11161117
"""
11171118
Ensure upstream referenced rule IDs and rule names remain unchanged

0 commit comments

Comments
 (0)