Skip to content

Commit 20bcd40

Browse files
J12934Ilyesbdlala
authored andcommitted
Adjust expected manifest templated by helm
Signed-off-by: Jannik Hollenbach <jannik.hollenbach@iteratec.com>
1 parent 6c180e3 commit 20bcd40

File tree

1 file changed

+19
-3
lines changed

1 file changed

+19
-3
lines changed

scanners/zap-automation-framework/tests/__snapshot__/scanner_test.yaml.snap

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,15 @@ matches the snapshot:
4444
- https://{{$.hostOrIP}}:{{attributes.port}}
4545
scanType: zap-automation-framework
4646
3: |
47+
apiVersion: v1
48+
data:
49+
zap-entrypoint.bash: |2
50+
# ensures that zap still exits with a exit code of zero when the scan logged warnings: see https://www.zaproxy.org/docs/automate/automation-framework/
51+
./zap.sh -cmd $@ || [ $? -ne 1 ]
52+
kind: ConfigMap
53+
metadata:
54+
name: zap-automation-framework-entrypoint
55+
4: |
4756
apiVersion: execution.securecodebox.io/v1
4857
kind: ParseDefinition
4958
metadata:
@@ -63,7 +72,7 @@ matches the snapshot:
6372
tolerations:
6473
- foo: bar
6574
ttlSecondsAfterFinished: null
66-
4: |
75+
5: |
6776
apiVersion: execution.securecodebox.io/v1
6877
kind: ScanType
6978
metadata:
@@ -81,8 +90,8 @@ matches the snapshot:
8190
foo: bar
8291
containers:
8392
- command:
84-
- zap.sh
85-
- -cmd
93+
- bash
94+
- /zap/zap-entrypoint.bash
8695
env: []
8796
envFrom: []
8897
image: softwaresecurityproject/zap-stable:0.0.0
@@ -101,6 +110,10 @@ matches the snapshot:
101110
volumeMounts:
102111
- mountPath: /zap/wrk
103112
name: zap-workdir
113+
- mountPath: /zap/zap-entrypoint.bash
114+
name: zap-automation-framework-entrypoint
115+
readOnly: true
116+
subPath: zap-entrypoint.bash
104117
- image: bar
105118
name: foo
106119
restartPolicy: Never
@@ -110,3 +123,6 @@ matches the snapshot:
110123
volumes:
111124
- emptyDir: {}
112125
name: zap-workdir
126+
- configMap:
127+
name: zap-automation-framework-entrypoint
128+
name: zap-automation-framework-entrypoint

0 commit comments

Comments
 (0)