Verbose message and resolution link not available in reports
aroundthecode opened this issue · comments
Describe the bug
invoking --verbose mode with --output JUnit (or any other then 'simple' ) does not show any link in XML report
To Reproduce
Steps to reproduce the behavior:
- from any helm chart folder
helm datree test --verbose .
- links are present in output
❌ Ensure each container has a configured CPU limit [1 occurrence]
How to fix: https://hub.datree.io/ensure-cpu-limit
- metadata.name: release-name-test-helm-generic (kind: Deployment)
💡 Missing property object `limits.cpu` - value should be within the accepted boundaries recommended by the organization
helm datree test --verbose --no-record --output JUnit .
- Links not present in report
<testcase name="Ensure each container has a configured memory request" classname="CONTAINERS_MISSING_MEMORY_REQUEST_KEY">
<failure message="Missing property object `requests.memory` - value should be within the accepted boundaries recommended by the organization">1 occurrences
- metadata.name: release-name-test-helm-generic (kind: Deployment)
0 skipped
</failure>
</testcase>
Expected behavior
Resolution message and link should be available also in different output format
Desktop (please complete the following information):
- OS: Linux and Windows
Datree plugin version (run helm datree verion
):
1.6.12
This behavior is happening because it's not supported by the CLI.
Therefore, I will move this issue to this project.
@hadar-co don't you have an open issue about that for the sarif output?
This is required for supporting SARIF output and our Github job summary.
Desired solution:
Add the links from the --verbose
output to all available output formats (YAML, JSON, xml, JUnit, SARIF)
Resolved in #778