mirror of
https://github.com/falcosecurity/falco.git
synced 2025-08-17 21:57:17 +00:00
fix codespell
Signed-off-by: Andrea Terzolo <andreaterzolo3@gmail.com>
This commit is contained in:
parent
5ee05abc08
commit
64bbffe5ef
@ -563,14 +563,14 @@ TEST_F(engine_loader_test, rule_append_after_rule_definition)
|
|||||||
ASSERT_EQ(get_compiled_rule_condition("test_rule"),"(evt.type in (open, openat) and proc.name = cat)");
|
ASSERT_EQ(get_compiled_rule_condition("test_rule"),"(evt.type in (open, openat) and proc.name = cat)");
|
||||||
}
|
}
|
||||||
|
|
||||||
TEST_F(engine_loader_test, list_override_append_typo)
|
TEST_F(engine_loader_test, list_override_append_wrong_key)
|
||||||
{
|
{
|
||||||
// todo: maybe we want to manage some non-existent keys
|
// todo: maybe we want to manage some non-existent keys
|
||||||
// Please note the typo in `override` in the first list definition.
|
// Please note how the non-existent key 'non-existent keys' is ignored.
|
||||||
std::string rules_content = R"END(
|
std::string rules_content = R"END(
|
||||||
- list: dev_creation_binaries
|
- list: dev_creation_binaries
|
||||||
items: ["csi-provisioner", "csi-attacher"]
|
items: ["csi-provisioner", "csi-attacher"]
|
||||||
overridde:
|
override_written_wrong:
|
||||||
items: append
|
items: append
|
||||||
|
|
||||||
- list: dev_creation_binaries
|
- list: dev_creation_binaries
|
||||||
@ -584,7 +584,7 @@ TEST_F(engine_loader_test, list_override_append_typo)
|
|||||||
|
|
||||||
)END";
|
)END";
|
||||||
|
|
||||||
// Since there is a typo in the first list definition the `override` is not
|
// Since there is a wrong key in the first list definition the `override` is not
|
||||||
// considered. so in this situation, we are defining the list 2 times. The
|
// considered. so in this situation, we are defining the list 2 times. The
|
||||||
// second one overrides the first one.
|
// second one overrides the first one.
|
||||||
ASSERT_TRUE(load_rules(rules_content, "rules.yaml"));
|
ASSERT_TRUE(load_rules(rules_content, "rules.yaml"));
|
||||||
|
Loading…
Reference in New Issue
Block a user