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

Commit be9cbc1

Browse files
committed
Add ssh-scan integration tests
1 parent 4207144 commit be9cbc1

File tree

1 file changed

+16
-7
lines changed

1 file changed

+16
-7
lines changed

.github/workflows/ci.yaml

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -263,31 +263,40 @@ jobs:
263263
--set="lurcher.image.digest=null"
264264
- name: "Inspect Operator"
265265
run: |
266-
echo "Deployment in namspace 'securecodebox-system'"
266+
echo "Deployment in namespace 'securecodebox-system'"
267267
kubectl -n securecodebox-system get deployments
268-
echo "Deployment in namspace 'securecodebox-system'"
268+
echo "Pods in namespace 'securecodebox-system'"
269269
kubectl -n securecodebox-system get pods
270270
echo "Operator Startup Logs"
271271
kubectl -n securecodebox-system logs deployment/securecodebox-controller-manager
272+
- name: "Create 'demo-apps' namespace"
273+
run: "kubectl create namespace demo-apps"
272274
- name: "Install Test Dependencies"
273275
run: |
274276
cd tests/integration/
275277
npm ci
276-
# This steps should include Integration tests which arent related to a Specific Scanner
278+
# This steps should include Integration tests which are not related to a Specific Scanner
277279
- name: "Generic Integration Tests"
278280
run: |
279281
cd tests/integration/
280282
npx jest --ci --color no-scan-definition-error
281-
- name: "Nmap Integration Tests"
283+
- name: "nmap Integration Tests"
282284
run: |
283285
helm -n integration-tests install nmap ./integrations/nmap/ --set="parserImage.tag=sha-$(git rev-parse --short HEAD)"
284286
cd tests/integration/
285287
npx jest --ci --color nmap
286-
- name: "Kube-hunter Integration Tests"
288+
- name: "kube-hunter Integration Tests"
287289
run: |
288290
helm -n integration-tests install kube-hunter ./integrations/kube-hunter/ --set="parserImage.tag=sha-$(git rev-parse --short HEAD)"
289291
cd tests/integration/
290292
npx jest --ci --color kube-hunter
293+
- name: "ssh-scan Integration Tests"
294+
run: |
295+
helm -n integration-tests install ssh-scan ./integrations/ssh-scan/ --set="parserImage.tag=sha-$(git rev-parse --short HEAD)"
296+
# Install dummy-ssh app
297+
helm -n demo-apps install dummy-ssh ./demo-apps/dummy-ssh/ --wait
298+
cd tests/integration/
299+
npx jest --ci --color ssh-scan
291300
- name: Inspect Post Failure
292301
if: failure()
293302
run: |
@@ -296,9 +305,9 @@ jobs:
296305
kubectl -n integration-tests get pods -o wide
297306
- name: "Inspect Operator"
298307
run: |
299-
echo "Deployment in namspace 'securecodebox-system'"
308+
echo "Deployment in namespace 'securecodebox-system'"
300309
kubectl -n securecodebox-system get deployments
301-
echo "Deployment in namspace 'securecodebox-system'"
310+
echo "Deployment in namespace 'securecodebox-system'"
302311
kubectl -n securecodebox-system get pods
303312
echo "Operator Startup Logs"
304313
kubectl -n securecodebox-system logs deployment/securecodebox-controller-manager

0 commit comments

Comments
 (0)