Update tests for rules loading (item names)

Update a few tests related to rules loading to use new names for
items (e.g. "rules content" for top level errors instead of "file")

Signed-off-by: Mark Stemm <mark.stemm@gmail.com>
This commit is contained in:
Mark Stemm 2022-08-22 17:31:19 -07:00 committed by poiana
parent 0f45cf49db
commit 103d7e08b8

View File

@ -285,7 +285,7 @@ trace_files: !mux
invalid_not_yaml:
exit_status: 1
validate_errors:
- item_type: file
- item_type: rules content
item_name: ""
code: LOAD_ERR_YAML_VALIDATE
message: "Rules content is not yaml"
@ -296,7 +296,7 @@ trace_files: !mux
invalid_not_array:
exit_status: 1
validate_errors:
- item_type: file
- item_type: rules content
item_name: ""
code: LOAD_ERR_YAML_VALIDATE
message: "Rules content is not yaml array of objects"
@ -307,7 +307,7 @@ trace_files: !mux
invalid_array_item_not_object:
exit_status: 1
validate_errors:
- item_type: item
- item_type: rules content item
item_name: ""
code: LOAD_ERR_YAML_VALIDATE
message: "Unexpected element type. Each element should be a yaml associative array."
@ -329,7 +329,7 @@ trace_files: !mux
invalid_yaml_parse_error:
exit_status: 1
validate_errors:
- item_type: file
- item_type: rules content
item_name: ""
code: LOAD_ERR_YAML_PARSE
message: "yaml-cpp: error at line 1, column 11: illegal map value"