diff --git a/tests/loaders_test.py b/tests/loaders_test.py index 71ec00f4..2b9e0775 100644 --- a/tests/loaders_test.py +++ b/tests/loaders_test.py @@ -11,8 +11,12 @@ import elastalert.ruletypes from elastalert.alerters.email import EmailAlerter from elastalert.config import load_conf -from elastalert.loaders import FileRulesLoader -from elastalert.loaders import RulesLoader +from elastalert.loaders import ( + FileRulesLoader, + RulesLoader, + load_rule_schema, +) + from elastalert.util import EAException @@ -622,3 +626,8 @@ def test_load_yaml_imports_modified(): 'rule_file': rule_path, } assert len(rules_loader.import_rules) == 0 + + +def test_load_rule_schema(): + validator = load_rule_schema() + validator.check_schema(validator.schema)