10BC0 Add Integration Tests for ZAP by J12934 · Pull Request #97 · secureCodeBox/secureCodeBox-v2 · GitHub
[go: up one dir, main page]

Skip to content
This repository was archived by the owner on Oct 14, 2020. It is now read-only.

Add Integration Tests for ZAP#97

Merged
nigthknight merged 13 commits intomasterfrom
zap-integration-tests
Sep 24, 2020
Merged

Add Integration Tests for ZAP#97
nigthknight merged 13 commits intomasterfrom
zap-integration-tests

Conversation

@J12934
Copy link
Member
@J12934 J12934 commented Sep 23, 2020

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.

@J12934 J12934 added the testing label Sep 23, 2020
@nigthknight nigthknight merged commit feb5b8a into master Sep 24, 2020
@J12934 J12934 deleted the zap-integration-tests branch September 29, 2020 08:24
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

0