sophos: fix log config indentation - #6773
Conversation
🌐 Coverage report
|
|
Pinging @elastic/security-external-integrations (Team:Security-External Integrations) |
bhapas
left a comment
There was a problem hiding this comment.
LGTM.
Just thinking if we can catch these kind of errors at build / check process? Can package-spec catch these errors
cc: @andrewkroh
andrewkroh
left a comment
There was a problem hiding this comment.
How can we improve here? Why didn't this get caught by a test case? Is this missing a system test for the log input? Is there any validation we can propose in package-spec to catch this? 🤔
@bhapas It seems we are thinking the same way. |
This did not get caught because the document is not a yaml document until it has been template-expanded. I was thinking about how to catch this in testing and the only thing I could come up with given the constraint of having a document that is essentially free-form — mod the handlebars syntax requirements — would be to have EP expand the template with valid-for-type values and confirm that the yaml is valid. |
|
An approach could be to check whether there is any |
|
Package sophos - 2.11.1 containing this change is available at https://epr.elastic.co/search?package=sophos |
That's similar to what I was thinking in the general case to validate handlebars and the yaml. But I think in this particular case of sophos the integration is missing a system test for |
What does this PR do?
Fixes indentation in the log config yml/hbs.
Checklist
changelog.ymlfile.Author's Checklist
How to test this PR locally
Related issues
Screenshots