Files
falco/test/rules
Mark Stemm a37e2252b2 Update tests to use result struct + json-based validation
Update tests that validated rules files (typically looking for
errors/warnings) to use the new result struct + json based validation:

- When validating rules files, always use json output.

- In test cases, instead of parsing stderr/stdout, use new test
  properties "validate_ok", "validate_errors",
  "validate_warnings". These parse the json output and look for
  specific tuples of (error code, error message, item type, item name)
  in the output.

- There were a few tests that were actually validation tests but using
  the -r argument to load rules. Convert them to validation tests. In
  one case, split the test into two separate tests--one for
  validation, one ensuring that the rule doesn't match anything.

- There were a couple of tests that were duplicates of existing
  validation tests, just checking for the error in a different
  way. Remove them.

Signed-off-by: Mark Stemm <mark.stemm@gmail.com>
2022-08-04 14:49:23 +02:00
..
2019-10-08 16:02:26 +02:00
2019-10-08 16:02:26 +02:00
2019-10-08 16:02:26 +02:00
2019-10-08 16:02:26 +02:00
2019-10-08 16:02:26 +02:00
2019-10-08 16:02:26 +02:00
2019-10-08 16:02:26 +02:00
2019-10-08 16:02:26 +02:00
2019-10-08 16:02:26 +02:00
2019-10-08 16:02:26 +02:00
2019-10-08 16:02:26 +02:00
2019-10-08 16:02:26 +02:00
2019-10-08 16:02:26 +02:00
2019-10-08 16:02:26 +02:00
2019-10-08 16:02:26 +02:00
2019-10-08 16:02:26 +02:00
2019-10-08 16:02:26 +02:00
2019-10-08 16:02:26 +02:00
2019-10-08 16:02:26 +02:00
2019-10-08 16:02:26 +02:00
2019-10-08 16:02:26 +02:00
2019-10-08 16:02:26 +02:00
2019-10-08 16:02:26 +02:00
2019-10-08 16:02:26 +02:00
2019-10-08 16:02:26 +02:00