Skip to content

Commit 05e38e8

Browse files
authored
update dast nrop apiUrl (#21)
1 parent 277de66 commit 05e38e8

19 files changed

+79
-129
lines changed

.idea/.gitignore

+8
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/dast/rapid-lca/03-rapidast-job.yaml

+5-8
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
---
21
apiVersion: v1
32
kind: PersistentVolumeClaim
43
metadata:
@@ -36,17 +35,15 @@ spec:
3635
- command:
3736
- sh
3837
- -c
39-
- rapidast.py --log-level debug --config
40-
/helm/config/rapidastconfig.yaml && find /opt/rapidast/results/lca
41-
-name zap-report.json -exec cat {} \;
38+
- rapidast.py --log-level debug --config /helm/config/rapidastconfig.yaml && find /opt/rapidast/results/ -name zap-report.json -exec cat {} \;
4239
image: quay.io/redhatproductsecurity/rapidast:latest
4340
imagePullPolicy: Always
4441
name: rapidast-chart
4542
resources: {}
4643
securityContext:
4744
privileged: true
48-
terminationMessagePath: /dev/termination-log
49-
terminationMessagePolicy: File
45+
terminationMessagePath: /dev/termination-log
46+
terminationMessagePolicy: File
5047
volumeMounts:
5148
- mountPath: /helm/config
5249
name: config-volume
@@ -62,5 +59,5 @@ spec:
6259
name: rapidast-configmap
6360
name: config-volume
6461
- name: results-volume
65-
persistentVolumeClaim: null
66-
claimName: rapidast-pvc
62+
persistentVolumeClaim:
63+
claimName: rapidast-pvc

tests/dast/rapid-lca/04-assert.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ apiVersion: kuttl.dev/v1beta1
22
kind: TestAssert
33
timeout: 180
44
commands:
5-
- script: ./tests/e2e-rh-sdl/rapidast-lca/results.sh
5+
- script: ./tests/dast/rapidast-lca/results.sh

tests/dast/rapid-lca/chainsaw-test.yaml

+13-13
Original file line numberDiff line numberDiff line change
@@ -5,38 +5,38 @@ metadata:
55
name: rapidast-lca
66
spec:
77
steps:
8-
- name: step-00
9-
try:
8+
- name: step-00
9+
try:
1010
- apply:
1111
file: 00-create-project.yaml
1212
- assert:
1313
file: 00-assert.yaml
14-
- name: step-01
15-
try:
14+
- name: step-01
15+
try:
1616
- apply:
1717
file: 01-create-sa.yaml
1818
- assert:
1919
file: 01-assert.yaml
20-
- name: step-02
21-
try:
20+
- name: step-02
21+
try:
2222
- script:
2323
timeout: 30s
2424
content: ./create_rapidast_configmap.sh
2525
- assert:
2626
file: 02-assert.yaml
27-
- name: step-03
28-
try:
27+
- name: step-03
28+
try:
2929
- apply:
3030
file: 03-rapidast-job.yaml
3131
- assert:
3232
file: 03-assert.yaml
33-
- name: step-04
34-
try:
33+
- name: step-04
34+
try:
3535
- script:
3636
timeout: 6m
3737
content: ./results.sh
38-
finally:
39-
- command:
38+
finally:
39+
- command:
4040
timeout: 1m
4141
entrypoint: oc
4242
args:
@@ -45,7 +45,7 @@ spec:
4545
- delete
4646
- pod
4747
- rapiterm-lca
48-
- command:
48+
- command:
4949
timeout: 1m
5050
entrypoint: oc
5151
args:

tests/dast/rapid-lca/oobt_test_data/cr_example.yaml

-8
This file was deleted.

tests/dast/rapid-lca/oobt_test_data/v5-none-oobt-template.yaml

-12
This file was deleted.

tests/dast/rapid-lca/test_oobt.py

-29
This file was deleted.

tests/dast/rapid-nrop/03-rapidast-job.yaml

+3-5
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,7 @@ spec:
3636
- command:
3737
- sh
3838
- -c
39-
- rapidast.py --log-level debug --config
40-
/helm/config/rapidastconfig.yaml && find /opt/rapidast/results/nrop
41-
-name zap-report.json -exec cat {} \;
39+
- rapidast.py --log-level debug --config /helm/config/rapidastconfig.yaml && find /opt/rapidast/results/nrop -name zap-report.json -exec cat {} \;
4240
image: quay.io/redhatproductsecurity/rapidast:latest
4341
imagePullPolicy: Always
4442
name: rapidast-chart
@@ -62,5 +60,5 @@ spec:
6260
name: rapidast-configmap
6361
name: config-volume
6462
- name: results-volume
65-
persistentVolumeClaim: null
66-
claimName: rapidast-pvc
63+
persistentVolumeClaim:
64+
claimName: rapidast-pvc

tests/dast/rapid-nrop/04-assert.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ apiVersion: kuttl.dev/v1beta1
22
kind: TestAssert
33
timeout: 180
44
commands:
5-
- script: ./tests/e2e-rh-sdl/rapidast-nrop/results.sh
5+
- script: ./tests/dast/rapidast-nrop/results.sh

tests/dast/rapid-nrop/chainsaw-test.yaml

+13-13
Original file line numberDiff line numberDiff line change
@@ -5,38 +5,38 @@ metadata:
55
name: rapidast-nrop
66
spec:
77
steps:
8-
- name: step-00
9-
try:
8+
- name: step-00
9+
try:
1010
- apply:
1111
file: 00-create-project.yaml
1212
- assert:
1313
file: 00-assert.yaml
14-
- name: step-01
15-
try:
14+
- name: step-01
15+
try:
1616
- apply:
1717
file: 01-create-sa.yaml
1818
- assert:
1919
file: 01-assert.yaml
20-
- name: step-02
21-
try:
20+
- name: step-02
21+
try:
2222
- script:
2323
timeout: 30s
2424
content: ./create_rapidast_configmap.sh
2525
- assert:
2626
file: 02-assert.yaml
27-
- name: step-03
28-
try:
27+
- name: step-03
28+
try:
2929
- apply:
3030
file: 03-rapidast-job.yaml
3131
- assert:
3232
file: 03-assert.yaml
33-
- name: step-04
34-
try:
33+
- name: step-04
34+
try:
3535
- script:
3636
timeout: 6m
3737
content: ./results.sh
38-
finally:
39-
- command:
38+
finally:
39+
- command:
4040
timeout: 1m
4141
entrypoint: oc
4242
args:
@@ -45,7 +45,7 @@ spec:
4545
- delete
4646
- pod
4747
- rapiterm-nrop
48-
- command:
48+
- command:
4949
timeout: 1m
5050
entrypoint: oc
5151
args:

tests/dast/rapid-nrop/create_rapidast_configmap.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ data:
3131
zap:
3232
apiScan:
3333
apis:
34-
apiUrl: "https://kubernetes.default.svc/openapi/v3/apis/nrop.openshift.io/v1alpha1"
34+
apiUrl: "https://kubernetes.default.svc/openapi/v3/apis/nodetopology.openshift.io/v1alpha1"
3535
passiveScan:
3636
disabledRules: "2,10015,10027,10096,10024,10054"
3737
activeScan:

tests/dast/rapid-ptp/03-rapidast-job.yaml

+3-5
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,7 @@ spec:
3636
- command:
3737
- sh
3838
- -c
39-
- rapidast.py --log-level debug --config
40-
/helm/config/rapidastconfig.yaml && find /opt/rapidast/results/ptp
41-
-name zap-report.json -exec cat {} \;
39+
- rapidast.py --log-level debug --config /helm/config/rapidastconfig.yaml && find /opt/rapidast/results/ptp -name zap-report.json -exec cat {} \;
4240
image: quay.io/redhatproductsecurity/rapidast:latest
4341
imagePullPolicy: Always
4442
name: rapidast-chart
@@ -62,5 +60,5 @@ spec:
6260
name: rapidast-configmap
6361
name: config-volume
6462
- name: results-volume
65-
persistentVolumeClaim: null
66-
claimName: rapidast-pvc
63+
persistentVolumeClaim:
64+
claimName: rapidast-pvc

tests/dast/rapid-ptp/04-assert.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ apiVersion: kuttl.dev/v1beta1
22
kind: TestAssert
33
timeout: 180
44
commands:
5-
- script: ./tests/e2e-rh-sdl/rapidast-ptp/results.sh
5+
- script: ./tests/dast/rapidast-ptp/results.sh

tests/dast/rapid-ptp/chainsaw-test.yaml

+11-11
Original file line numberDiff line numberDiff line change
@@ -5,27 +5,27 @@ metadata:
55
name: rapidast-ptp
66
spec:
77
steps:
8-
- name: step-00
9-
try:
8+
- name: step-00
9+
try:
1010
- apply:
1111
file: 00-create-project.yaml
1212
- assert:
1313
file: 00-assert.yaml
14-
- name: step-01
15-
try:
14+
- name: step-01
15+
try:
1616
- apply:
1717
file: 01-create-sa.yaml
1818
- assert:
1919
file: 01-assert.yaml
20-
- name: step-02
21-
try:
20+
- name: step-02
21+
try:
2222
- script:
2323
timeout: 30s
2424
content: ./create_rapidast_configmap.sh
2525
- assert:
2626
file: 02-assert.yaml
27-
- name: step-03
28-
try:
27+
- name: step-03
28+
try:
2929
- apply:
3030
file: 03-rapidast-job.yaml
3131
- assert:
@@ -35,8 +35,8 @@ spec:
3535
- script:
3636
timeout: 6m
3737
content: ./results.sh
38-
finally:
39-
- command:
38+
finally:
39+
- command:
4040
timeout: 1m
4141
entrypoint: oc
4242
args:
@@ -45,7 +45,7 @@ spec:
4545
- delete
4646
- pod
4747
- rapiterm-ptp
48-
- command:
48+
- command:
4949
timeout: 1m
5050
entrypoint: oc
5151
args:

tests/dast/rapid-ptp/create_rapidast_configmap.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ data:
3131
zap:
3232
apiScan:
3333
apis:
34-
apiUrl: "https://kubernetes.default.svc/openapi/v3/apis/ptp.openshift.io/v1alpha1"
34+
apiUrl: "https://kubernetes.default.svc/openapi/v3/apis/ptp.openshift.io/v1"
3535
passiveScan:
3636
disabledRules: "2,10015,10027,10096,10024,10054"
3737
activeScan:

tests/dast/rapid-talm/03-rapidast-job.yaml

+3-5
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,7 @@ spec:
3636
- command:
3737
- sh
3838
- -c
39-
- rapidast.py --log-level debug --config
40-
/helm/config/rapidastconfig.yaml && find /opt/rapidast/results/talm
41-
-name zap-report.json -exec cat {} \;
39+
- rapidast.py --log-level debug --config /helm/config/rapidastconfig.yaml && find /opt/rapidast/results/talm -name zap-report.json -exec cat {} \;
4240
image: quay.io/redhatproductsecurity/rapidast:latest
4341
imagePullPolicy: Always
4442
name: rapidast-chart
@@ -62,5 +60,5 @@ spec:
6260
name: rapidast-configmap
6361
name: config-volume
6462
- name: results-volume
65-
persistentVolumeClaim: null
66-
claimName: rapidast-pvc
63+
persistentVolumeClaim:
64+
claimName: rapidast-pvc

tests/dast/rapid-talm/04-assert.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ apiVersion: kuttl.dev/v1beta1
22
kind: TestAssert
33
timeout: 180
44
commands:
5-
- script: ./tests/e2e-rh-sdl/rapidast-talm/results.sh
5+
- script: ./tests/dast/rapidast-talm/results.sh

0 commit comments

Comments
 (0)