Skip to content

Commit 344b20f

Browse files
Fix dependant string match in test_python_library.py
1 parent 71223c4 commit 344b20f

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

detection_rules/rule_validators.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -374,9 +374,7 @@ def validate(self, data: "QueryRuleData", meta: RuleMeta, max_attempts: int = 10
374374
else:
375375
click.echo(f"Stack Error Trace: {validation_checks["stack"]}")
376376
click.echo(f"Integrations Error Trace: {validation_checks["integrations"]}")
377-
raise ValueError(f"Error in both stack and integrations checks: \n" \
378-
f"Stack Error : {validation_checks["stack"].error_msg} \n" \
379-
f"Integrations Error : {validation_checks["integrations"].error_msg}")
377+
raise ValueError("Error in both stack and integrations checks")
380378

381379
else:
382380
break

tests/test_python_library.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ def test_eql_in_set(self):
5555
""",
5656
},
5757
}
58-
expected_error_message = r"Error in both stack and integrations checks:.*Unable to compare ip to string.*"
58+
expected_error_message = r"Error in both stack and integrations checks"
5959
with self.assertRaisesRegex(ValueError, expected_error_message):
6060
rc.load_dict(eql_rule)
6161
# Change to appropriate destination.address field

0 commit comments

Comments
 (0)