cleanup(rule_loader): add a common log message

Signed-off-by: Andrea Terzolo <andreaterzolo3@gmail.com>
This commit is contained in:
Andrea Terzolo
2024-01-03 12:40:19 +01:00
committed by poiana
parent 447a251e16
commit 7cac2833b2
3 changed files with 7 additions and 5 deletions

View File

@@ -283,7 +283,7 @@ TEST_F(engine_loader_test, rule_incorrect_append_override)
std::string rule_name = "failing_rule";
ASSERT_FALSE(load_rules(rules_content, "rules.yaml"));
ASSERT_TRUE(std::string(m_load_result_json["errors"][0]["message"]).find("'override' and 'append: true' cannot be used together") != std::string::npos);
ASSERT_TRUE(std::string(m_load_result_json["errors"][0]["message"]).find(OVERRIDE_APPEND_ERROR_MESSAGE) != std::string::npos);
}
TEST_F(engine_loader_test, rule_override_without_rule)