From 103d7e08b83a7c54f30426a4243d82ef0daa2b33 Mon Sep 17 00:00:00 2001 From: Mark Stemm Date: Mon, 22 Aug 2022 17:31:19 -0700 Subject: [PATCH] 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 --- test/falco_tests.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/falco_tests.yaml b/test/falco_tests.yaml index 51442cba..91085970 100644 --- a/test/falco_tests.yaml +++ b/test/falco_tests.yaml @@ -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"