You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add initial support to validate the mappings in system tests (#2214)
Add validation of the mappings when running system tests. Currently, this
validation does not take into account dynamic templates.
This process compares the mappings installed by Fleet (preview mappings)
with the ones obtained after ingesting new documents into Elasticsearch.
This new validation needs to be enabled by setting a new environment
variable "ELASTIC_PACKAGE_FIELD_VALIDATION_TEST_METHOD=mappings".
By default, elastic-package keeps using the same mechanism to validate that
all fields are documented.
@@ -86,48 +76,56 @@ for package in $(find . -maxdepth 1 -mindepth 1 -type d) ; do
86
76
echo" - build/test-results/*.xml"
87
77
echo" - build/test-results/*.xml.expected-errors.txt"# these files are uploaded in case it is needed to review the xUnit files in case of CI reports success the step
88
78
echo" - build/test-coverage/coverage-*.xml"# these files should not be used to compute the final coverage of elastic-package
89
-
done
79
+
done<<(find . -maxdepth 1 -mindepth 1 -type d -print0)
echo" - build/test-coverage/coverage-*.xml"# these files should not be used to compute the final coverage of elastic-package
96
+
done<<(find . -maxdepth 1 -mindepth 1 -type d -print0)
109
97
110
-
if [[ "$independent_agent"=="false"&&"$package_name"=="custom_entrypoint" ]];then
111
-
echoerr "Package \"${package_name}\" skipped: not supported with Elastic Agent running in the stack (missing required files deployed in provisioning)."
112
-
continue
113
-
fi
98
+
# Run system tests with the Elastic Agent from the Elastic stack just for one package
Copy file name to clipboardExpand all lines: README.md
+8-1Lines changed: 8 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -677,9 +677,16 @@ There are available some environment variables that could be used to change some
677
677
-`ELASTIC_PACKAGE_DISABLE_ELASTIC_AGENT_WOLFI`: If set to `true`, the Elastic Agent image used for running agents will be using the Ubuntu docker images
678
678
(e.g. `docker.elastic.co/elastic-agent/elastic-agent-complete`). If set to `false`, the Elastic Agent image used for the running agents will be based on the wolfi
0 commit comments