mirror of
https://github.com/splunk/security_content
synced 2026-06-08 17:32:49 +00:00
forgot to remove exception raise
in last commit
This commit is contained in:
@@ -95,7 +95,6 @@ def test_detection(splunk_ip:str, splunk_port:int, container_name:str, splunk_pa
|
||||
tests:dict = detection_file_obj.get("tests", {})
|
||||
if len(tests) > 1:
|
||||
print(f"****WARNING - THIS DETECTION CONTAINS {len(tests)} TESTS BUT WE WILL ONLY RUN 1")
|
||||
raise(Exception(f"Error testing detection {detection_file_obj['name']} - file contains [{len(tests)}] but we currently only support 1 test per detection"))
|
||||
test = tests[0]
|
||||
indices_to_delete = set()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user