-
Notifications
You must be signed in to change notification settings - Fork 87
template_path validation for streams and template policies #986
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
Closed
teresaromero
wants to merge
50
commits into
elastic:main
from
teresaromero:703-stream-yml-hbs-exists
Closed
Changes from 18 commits
Commits
Show all changes
50 commits
Select commit
Hold shift + click to select a range
78b6c7d
Add validation for data stream template paths
teresaromero 6b5db09
Add new testdata packages for stream template validation
teresaromero 78ebe46
Add validation for stream templates and corresponding tests
teresaromero f09e0d6
Add validation for input and integration policy template paths with c…
teresaromero 84cf7b1
Fix policy template validation to support nested inputs and improve e…
teresaromero 45f462b
Add testdata for input and integration policy templates
teresaromero cd6c408
Add tests for input and integration policy template validation, inclu…
teresaromero bc144d4
Format imports with goimports
teresaromero edbba40
Move validation test from spec to validator. Move testdata to test/pa…
teresaromero 5045d28
fix test maifest and spec example to align to validation path
teresaromero 423793f
Refactor validateDataStreamManifestTemplates to simplify parameters b…
teresaromero fb191e2
Improve error messaging in template path validation by using %w for w…
teresaromero 526c665
Update error messages in template path validation tests for clarity a…
teresaromero a78f6c2
Add validation for template_path in policy templates and data streams
teresaromero 4fa3db6
Add validation for `template_path` in policy templates and data strea…
teresaromero 364d708
Refactor template path handling in validation functions to use filepa…
teresaromero 6e35950
Update tests to use filepath
teresaromero 0d3e22c
filepath join at tests
teresaromero 9dca430
Refactor tests to use os and filepath for directory and file handling…
teresaromero 704aef2
Reorder import statements
teresaromero 801b990
Refactor error handling in template validation functions to use prede…
teresaromero 741ffb0
Merge branch 'main' into 703-stream-yml-hbs-exists
teresaromero 8f47f3c
remove changelog template_path quotes
teresaromero 9d3e1dd
Comment out validation rules and test cases for stream and input poli…
teresaromero 316dbd3
Refactor path handling in validation functions to use path.Join inste…
teresaromero 13f5ae8
Uncomment validation rules and test cases for stream and input policy…
teresaromero cfa7087
Fix changelog entry order
teresaromero 19bf9da
Add validation for default template paths in data stream tests
teresaromero 731a589
Rename validation function for agent input template paths and update …
teresaromero 807f407
Add stream template files for data stream agent validation tests
teresaromero b2be7dd
Refactor error handling in validateAgentInputTemplatePath to differen…
teresaromero 0882440
Change specs with required fields and json patch
teresaromero a6379bf
Update validation rules and manifest files for version 3.6.0 complian…
teresaromero bfe466b
revert changes on old test packages
teresaromero 53ccaf3
recover deleted file
teresaromero f1369eb
Revert "revert changes on old test packages"
teresaromero d0dd5d8
revert version limit
teresaromero 6ee279c
fix test cases
teresaromero 4da74b3
fix testdata with template_paths
teresaromero 5d1ac9c
Revert "fix testdata with template_paths"
teresaromero 616761c
Revert "fix test cases"
teresaromero 7b474a7
revert required field at integrations, fix required validation for in…
teresaromero 818eff5
change streams template_path validation, use walkdir with endsWith logic
teresaromero 86fec86
Merge branch 'main' into 703-stream-yml-hbs-exists
teresaromero 84d2161
changelog move template_path validation entry to 3.5.1-next
teresaromero a84f9c7
Rename defaultTemplatePath to defaultStreamTemplatePath for clarity
teresaromero fd34e79
Change fs.SkipDir to fs.SkipAll to stop directory traversal once a ma…
teresaromero 11efa5d
Fix error handling in validateDataStreamManifestTemplates for directo…
teresaromero 8ec5de0
Update link in comment to point to the correct commit in Kibana repos…
teresaromero a3b56e5
Refactor policy template validation: consolidate ValidateStreamTempla…
teresaromero 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 hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
Empty file.
Empty file.
Empty file.
This file contains hidden or 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
Empty file.
This file contains hidden or 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
Empty file.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.