trivy icon indicating copy to clipboard operation
trivy copied to clipboard

chore(k8s): Improve testing for k8s scanner

Open simar7 opened this issue 1 year ago • 3 comments

As discussed here we should improve the testing for the k8s scanner as it is short on coverage.

As part of this we could also look into refactoring the scanner a bit.

simar7 avatar Oct 19 '24 01:10 simar7

update: there was an attempt to add some testcases here https://github.com/afdesk/trivy/pull/101/files for #8442 It seems to take a long time; perhaps we should investigate ways to optimize performance. We might also consider refactoring the code to avoid using flag options for better readability and maintainability.

afdesk avatar Feb 24 '25 13:02 afdesk

It seems to take a long time; perhaps we should investigate ways to optimize performance.

@afdesk it takes a long time as in the test is slow to finish? Is it an integration test? If so, is the slow evaluation is expected?

simar7 avatar Feb 24 '25 23:02 simar7

Related https://github.com/aquasecurity/trivy-operator/issues/2573

simar7 avatar Jun 04 '25 04:06 simar7