This PR adds integration tests for the ZAP integration.
While adding these i've made some other improvements to improve the stability and debuggability of the tests:
Made ttlSecondsAfterFinished property on scanJobs configurable. Kind seems to already have the ttlAfterFinished controller running even thought its still an alpha feature. When this is enable its harder to log print logs of failing scanner containers as they might already be deleted.
Test helper will now print out logs of the scan container when it failed. This allows to easier debug why a test is failing.
Reduce test flakyness by giving the k8s api server more time (2 seconds) before fetching the final state of the finished scan. This reduces the likeliness that the tests fetch inconsistent scan state.
Swtich out all ZAP images to weekly releases (also the baseline scanType), as the 2.9.0 doesn't run on containerd cluster.
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
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.
This PR adds integration tests for the ZAP integration.
While adding these i've made some other improvements to improve the stability and debuggability of the tests: