File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -289,6 +289,7 @@ jobs:
289289 - ssh-scan
290290 - sslyze
291291 - trivy
292+ - typo3scan
292293 - wpscan
293294 - zap
294295 steps :
@@ -470,7 +471,6 @@ jobs:
470471 - screenshooter
471472 - test-scan
472473 - whatweb
473- - typo3scan
474474
475475 steps :
476476 - name : Checkout
@@ -550,7 +550,6 @@ jobs:
550550 strategy :
551551 matrix :
552552 scanner :
553- - typo3scan
554553 - whatweb
555554
556555 steps :
@@ -923,19 +922,6 @@ jobs:
923922 npx jest --ci --color ./hooks/notification.test.js
924923 helm -n integration-tests uninstall test-scan http-webhook notification-hook
925924
926- # ---- Typo3scan Integration Tests ----
927-
928- - name : " typo3scan Integration Tests"
929- run : |
930- kubectl -n integration-tests delete scans --all
931- helm -n integration-tests install typo3scan ./scanners/typo3scan/ \
932- --set="parser.image.tag=sha-$(git rev-parse --short HEAD)" \
933- --set="parser.image.repository=docker.io/${{ env.DOCKER_NAMESPACE }}/parser-typo3scan" \
934- --set="parser.env[0].name=CRASH_ON_FAILED_VALIDATION" \
935- --set-string="parser.env[0].value=true"
936- cd tests/integration/
937- npx jest --ci --color scanner/typo3scan.test.js
938-
939925 # ---- Whatweb Integration Tests ----
940926
941927 - name : " Whatweb Integration Tests"
Original file line number Diff line number Diff line change @@ -12,3 +12,10 @@ custom_scanner = set
1212include ../../scanners.mk
1313
1414deploy-test-deps : deploy-test-dep-old-typo3
15+
16+ integration-tests :
17+ @echo " .: 🩺 Starting integration test in kind namespace 'integration-tests'."
18+ kubectl -n integration-tests delete scans --all
19+ cd ../../tests/integration/ && npm ci
20+ cd ../../scanners/${scanner}
21+ 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 22//
33// SPDX-License-Identifier: Apache-2.0
44
5- const { scan } = require ( "../helpers" ) ;
5+ const { scan } = require ( "../../../tests/integration/ helpers" ) ;
66
77jest . retryTimes ( 3 ) ;
88
3939 ) . rejects . toThrow ( "HTTP request failed" ) ;
4040 } ,
4141 3 * 60 * 1000
42- ) ;
42+ ) ;
You can’t perform that action at this time.
0 commit comments