-
Notifications
You must be signed in to change notification settings - Fork 117
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add false positive test package to detect errors in elastic agent logs #2084
Conversation
/test |
1 similar comment
/test |
This reverts commit 782322c.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice, thanks!
# Copy XML files to another extension so they are not used to check jUnit tests | ||
# but those files will be able to be reviewed afterwards | ||
for file in $(ls $result_tests) ; do | ||
cp "${file}" "${file}.txt" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit. Could we add some meaningful suffix?
cp "${file}" "${file}.txt" | |
cp "${file}" "${file}-expected-errors.txt" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure!
I'll update it.
@@ -59,6 +59,11 @@ function check_expected_errors() { | |||
cat ${results_no_spaces} | grep -E "${line}" | |||
done < "${expected_errors_file}" | |||
|
|||
# Copy XML files to another extension so they are not used to check jUnit tests | |||
# but those files will be able to be reviewed afterwards |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
/test |
1 similar comment
/test |
💚 Build Succeeded
History
cc @mrodm |
Closes #1811
Added a new test package into
false_positives
to be able to check if there is any error in the logs from Elastic Agent container.This package requires to be executed in a specific Elastic stack version 8.12.0 in order to reproduce the error.
Tested failure (not detected error logs) build (using 8.12.1):