-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
[Metricbeat] Testing: Allow use of different directory to test data instead of the expected one #34467
Merged
Merged
[Metricbeat] Testing: Allow use of different directory to test data instead of the expected one #34467
Changes from 1 commit
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
c0d45a0
Allow change of directory.
constanca-m eaa103d
Update CHANGELOG.next.asciidoc
constanca-m 150df6b
Fix testdata testing function
constanca-m 2693f39
Do not test data.json
constanca-m 7eeeb91
Fix collector_test.go
constanca-m 9d7e4c9
Fix path comment.
constanca-m b1ef5ad
Merge branch 'elastic:main' into refactor-test-data-mb
constanca-m 5b7a2cd
Revert collector changes.
constanca-m b54289e
Move difference to the correct changelog.
constanca-m 8682c37
Add comment to function.
constanca-m 129baac
Fix comment to function.
constanca-m e5890e2
Fix collector files.
constanca-m e9fbddd
Fix collector files.
constanca-m b340c6c
Fix collector files.
constanca-m 9d755ea
Fix collector files.
constanca-m b6b1a2d
Fix collector files.
constanca-m e0c13cc
Fix collector files.
constanca-m c36ebd9
Update optional string to mandatory string.
constanca-m 5f512ed
Merge branch 'elastic:main' into refactor-test-data-mb
constanca-m a8aebff
Remove misplaced folder.
constanca-m e5be71c
Update README.md
constanca-m 79f4804
Update README.md
constanca-m 22abe62
Set default data.json location
constanca-m 5a8fa8c
Update readme
constanca-m febd2e2
Update readme
constanca-m File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
could you please somewhere add a comment why we have
data.json
file and that is used/might be used for our public documentation (or link to the place where it is mentioned, but I couldn't find it)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.
I can try, but I am not sure I understand the reasoning for that file since it was already there
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.
I was thinking about adding smth like
data.json file is used to render example events published in our official documentation
at least for me it wasn't clear at the moment of asking why we generated those files in this comment #34467 (comment)
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.
Ok, done that! I was thinking something more complex, but as you wrote it, it makes perfect sense. I don't want to link to the line code because I would have to use one fixed commit and that might end up not making sense if we are on the branch main and are sent to a possible very old one.