File tree Expand file tree Collapse file tree 4 files changed +10
-15
lines changed
Expand file tree Collapse file tree 4 files changed +10
-15
lines changed Original file line number Diff line number Diff line change @@ -279,6 +279,7 @@ jobs:
279279 unit :
280280 - amass
281281 - nuclei
282+ - ssh-scan
282283 steps :
283284 - name : Checkout
284285 uses : actions/checkout@v2
@@ -463,7 +464,6 @@ jobs:
463464 - nikto
464465 - nmap
465466 - screenshooter
466- - ssh-scan
467467 - sslyze
468468 - test-scan
469469 - trivy
@@ -1022,19 +1022,6 @@ jobs:
10221022 npx jest --ci --color ./hooks/notification.test.js
10231023 helm -n integration-tests uninstall test-scan http-webhook notification-hook
10241024
1025- # ---- SSH_SCAN Integration Tests ----
1026-
1027- - name : " ssh-scan Integration Tests"
1028- run : |
1029- kubectl -n integration-tests delete scans --all
1030- helm -n integration-tests install ssh-scan ./scanners/ssh-scan/ \
1031- --set="parser.image.tag=sha-$(git rev-parse --short HEAD)" \
1032- --set="parser.image.repository=docker.io/${{ env.DOCKER_NAMESPACE }}/parser-ssh-scan" \
1033- --set="parser.env[0].name=CRASH_ON_FAILED_VALIDATION" \
1034- --set-string="parser.env[0].value=true"
1035- cd tests/integration/
1036- npx jest --ci --color scanner/ssh-scan.test.js
1037-
10381025 # ---- SSLyze Integration Tests ----
10391026
10401027 - name : " sslyze Integration Tests"
Original file line number Diff line number Diff line change @@ -11,3 +11,10 @@ scanner = ssh-scan
1111include ../../scanners.mk
1212
1313deploy-test-deps : deploy-test-dep-dummy-ssh
14+
15+ integration-tests :
16+ @echo " .: 🩺 Starting integration test in kind namespace 'integration-tests'."
17+ kubectl -n integration-tests delete scans --all
18+ cd ../../tests/integration/ && npm ci
19+ cd ../../scanners/${scanner}
20+ npx --yes --package jest@$(JEST_VERSION ) jest --verbose --ci --colors --coverage --passWithNoTests ${scanner} /integration-tests
Original file line number Diff line number Diff line change 1+ {}
Original file line number Diff line number Diff line change 33// SPDX-License-Identifier: Apache-2.0
44
55// todo: Integrate into github ci pipeline
6- const { scan } = require ( "../helpers" ) ;
6+ const { scan } = require ( "../../../tests/integration/ helpers.js " ) ;
77
88jest . retryTimes ( 3 ) ;
99
You can’t perform that action at this time.
0 commit comments