Skip to content

Commit

Permalink
update all test dast steps
Browse files Browse the repository at this point in the history
  • Loading branch information
obochan-rh committed Nov 26, 2024
1 parent 6c5985d commit 151766d
Show file tree
Hide file tree
Showing 15 changed files with 65 additions and 123 deletions.
13 changes: 5 additions & 8 deletions tests/dast/rapid-lca/03-rapidast-job.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
Expand Down Expand Up @@ -36,17 +35,15 @@ spec:
- command:
- sh
- -c
- rapidast.py --log-level debug --config
/helm/config/rapidastconfig.yaml && find /opt/rapidast/results/lca
-name zap-report.json -exec cat {} \;
- rapidast.py --log-level debug --config /helm/config/rapidastconfig.yaml && find /opt/rapidast/results/ -name zap-report.json -exec cat {} \;
image: quay.io/redhatproductsecurity/rapidast:latest
imagePullPolicy: Always
name: rapidast-chart
resources: {}
securityContext:
privileged: true
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
volumeMounts:
- mountPath: /helm/config
name: config-volume
Expand All @@ -62,5 +59,5 @@ spec:
name: rapidast-configmap
name: config-volume
- name: results-volume
persistentVolumeClaim: null
claimName: rapidast-pvc
persistentVolumeClaim:
claimName: rapidast-pvc
2 changes: 1 addition & 1 deletion tests/dast/rapid-lca/04-assert.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ apiVersion: kuttl.dev/v1beta1
kind: TestAssert
timeout: 180
commands:
- script: ./tests/e2e-rh-sdl/rapidast-lca/results.sh
- script: ./tests/dast/rapidast-lca/results.sh
26 changes: 13 additions & 13 deletions tests/dast/rapid-lca/chainsaw-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,38 +5,38 @@ metadata:
name: rapidast-lca
spec:
steps:
- name: step-00
try:
- name: step-00

Check failure on line 8 in tests/dast/rapid-lca/chainsaw-test.yaml

View workflow job for this annotation

GitHub Actions / Ansible Lint

yaml[indentation]

Wrong indentation: expected 4 but found 2
try:
- apply:

Check failure on line 10 in tests/dast/rapid-lca/chainsaw-test.yaml

View workflow job for this annotation

GitHub Actions / Ansible Lint

yaml[indentation]

Wrong indentation: expected 6 but found 4
file: 00-create-project.yaml
- assert:
file: 00-assert.yaml
- name: step-01
try:
- name: step-01
try:
- apply:

Check failure on line 16 in tests/dast/rapid-lca/chainsaw-test.yaml

View workflow job for this annotation

GitHub Actions / Ansible Lint

yaml[indentation]

Wrong indentation: expected 6 but found 4
file: 01-create-sa.yaml
- assert:
file: 01-assert.yaml
- name: step-02
try:
- name: step-02
try:
- script:

Check failure on line 22 in tests/dast/rapid-lca/chainsaw-test.yaml

View workflow job for this annotation

GitHub Actions / Ansible Lint

yaml[indentation]

Wrong indentation: expected 6 but found 4
timeout: 30s
content: ./create_rapidast_configmap.sh
- assert:
file: 02-assert.yaml
- name: step-03
try:
- name: step-03
try:
- apply:

Check failure on line 29 in tests/dast/rapid-lca/chainsaw-test.yaml

View workflow job for this annotation

GitHub Actions / Ansible Lint

yaml[indentation]

Wrong indentation: expected 6 but found 4
file: 03-rapidast-job.yaml
- assert:
file: 03-assert.yaml
- name: step-04
try:
- name: step-04
try:
- script:

Check failure on line 35 in tests/dast/rapid-lca/chainsaw-test.yaml

View workflow job for this annotation

GitHub Actions / Ansible Lint

yaml[indentation]

Wrong indentation: expected 6 but found 4
timeout: 6m
content: ./results.sh
finally:
- command:
finally:
- command:
timeout: 1m
entrypoint: oc
args:
Expand All @@ -45,7 +45,7 @@ spec:
- delete
- pod
- rapiterm-lca
- command:
- command:
timeout: 1m
entrypoint: oc
args:
Expand Down
8 changes: 0 additions & 8 deletions tests/dast/rapid-lca/oobt_test_data/cr_example.yaml

This file was deleted.

12 changes: 0 additions & 12 deletions tests/dast/rapid-lca/oobt_test_data/v5-none-oobt-template.yaml

This file was deleted.

29 changes: 0 additions & 29 deletions tests/dast/rapid-lca/test_oobt.py

This file was deleted.

6 changes: 2 additions & 4 deletions tests/dast/rapid-nrop/03-rapidast-job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,7 @@ spec:
- command:
- sh
- -c
- rapidast.py --log-level debug --config
/helm/config/rapidastconfig.yaml && find /opt/rapidast/results/nrop
-name zap-report.json -exec cat {} \;
- rapidast.py --log-level debug --config /helm/config/rapidastconfig.yaml && find /opt/rapidast/results/nrop -name zap-report.json -exec cat {} \;
image: quay.io/redhatproductsecurity/rapidast:latest
imagePullPolicy: Always
name: rapidast-chart
Expand All @@ -63,4 +61,4 @@ spec:
name: config-volume
- name: results-volume
persistentVolumeClaim: null
claimName: rapidast-pvc
claimName: rapidast-pvc
2 changes: 1 addition & 1 deletion tests/dast/rapid-nrop/04-assert.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ apiVersion: kuttl.dev/v1beta1
kind: TestAssert
timeout: 180
commands:
- script: ./tests/e2e-rh-sdl/rapidast-nrop/results.sh
- script: ./tests/dast/rapidast-nrop/results.sh
26 changes: 13 additions & 13 deletions tests/dast/rapid-nrop/chainsaw-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,38 +5,38 @@ metadata:
name: rapidast-nrop
spec:
steps:
- name: step-00
try:
- name: step-00

Check failure on line 8 in tests/dast/rapid-nrop/chainsaw-test.yaml

View workflow job for this annotation

GitHub Actions / Ansible Lint

yaml[indentation]

Wrong indentation: expected 4 but found 2
try:
- apply:

Check failure on line 10 in tests/dast/rapid-nrop/chainsaw-test.yaml

View workflow job for this annotation

GitHub Actions / Ansible Lint

yaml[indentation]

Wrong indentation: expected 6 but found 4
file: 00-create-project.yaml
- assert:
file: 00-assert.yaml
- name: step-01
try:
- name: step-01
try:
- apply:

Check failure on line 16 in tests/dast/rapid-nrop/chainsaw-test.yaml

View workflow job for this annotation

GitHub Actions / Ansible Lint

yaml[indentation]

Wrong indentation: expected 6 but found 4
file: 01-create-sa.yaml
- assert:
file: 01-assert.yaml
- name: step-02
try:
- name: step-02
try:
- script:
timeout: 30s
content: ./create_rapidast_configmap.sh
- assert:
file: 02-assert.yaml
- name: step-03
try:
- name: step-03
try:
- apply:
file: 03-rapidast-job.yaml
- assert:
file: 03-assert.yaml
- name: step-04
try:
- name: step-04
try:
- script:
timeout: 6m
content: ./results.sh
finally:
- command:
finally:
- command:
timeout: 1m
entrypoint: oc
args:
Expand All @@ -45,7 +45,7 @@ spec:
- delete
- pod
- rapiterm-nrop
- command:
- command:
timeout: 1m
entrypoint: oc
args:
Expand Down
6 changes: 2 additions & 4 deletions tests/dast/rapid-ptp/03-rapidast-job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,7 @@ spec:
- command:
- sh
- -c
- rapidast.py --log-level debug --config
/helm/config/rapidastconfig.yaml && find /opt/rapidast/results/ptp
-name zap-report.json -exec cat {} \;
- rapidast.py --log-level debug --config /helm/config/rapidastconfig.yaml && find /opt/rapidast/results/ptp -name zap-report.json -exec cat {} \;
image: quay.io/redhatproductsecurity/rapidast:latest
imagePullPolicy: Always
name: rapidast-chart
Expand All @@ -63,4 +61,4 @@ spec:
name: config-volume
- name: results-volume
persistentVolumeClaim: null
claimName: rapidast-pvc
claimName: rapidast-pvc
2 changes: 1 addition & 1 deletion tests/dast/rapid-ptp/04-assert.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ apiVersion: kuttl.dev/v1beta1
kind: TestAssert
timeout: 180
commands:
- script: ./tests/e2e-rh-sdl/rapidast-ptp/results.sh
- script: ./tests/dast/rapidast-ptp/results.sh
22 changes: 11 additions & 11 deletions tests/dast/rapid-ptp/chainsaw-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,27 +5,27 @@ metadata:
name: rapidast-ptp
spec:
steps:
- name: step-00
try:
- name: step-00
try:
- apply:
file: 00-create-project.yaml
- assert:
file: 00-assert.yaml
- name: step-01
try:
- name: step-01
try:
- apply:
file: 01-create-sa.yaml
- assert:
file: 01-assert.yaml
- name: step-02
try:
- name: step-02
try:
- script:
timeout: 30s
content: ./create_rapidast_configmap.sh
- assert:
file: 02-assert.yaml
- name: step-03
try:
- name: step-03
try:
- apply:
file: 03-rapidast-job.yaml
- assert:
Expand All @@ -35,8 +35,8 @@ spec:
- script:
timeout: 6m
content: ./results.sh
finally:
- command:
finally:
- command:
timeout: 1m
entrypoint: oc
args:
Expand All @@ -45,7 +45,7 @@ spec:
- delete
- pod
- rapiterm-ptp
- command:
- command:
timeout: 1m
entrypoint: oc
args:
Expand Down
6 changes: 2 additions & 4 deletions tests/dast/rapid-talm/03-rapidast-job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,7 @@ spec:
- command:
- sh
- -c
- rapidast.py --log-level debug --config
/helm/config/rapidastconfig.yaml && find /opt/rapidast/results/talm
-name zap-report.json -exec cat {} \;
- rapidast.py --log-level debug --config /helm/config/rapidastconfig.yaml && find /opt/rapidast/results/talm -name zap-report.json -exec cat {} \;
image: quay.io/redhatproductsecurity/rapidast:latest
imagePullPolicy: Always
name: rapidast-chart
Expand All @@ -63,4 +61,4 @@ spec:
name: config-volume
- name: results-volume
persistentVolumeClaim: null
claimName: rapidast-pvc
claimName: rapidast-pvc
2 changes: 1 addition & 1 deletion tests/dast/rapid-talm/04-assert.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ apiVersion: kuttl.dev/v1beta1
kind: TestAssert
timeout: 180
commands:
- script: ./tests/e2e-rh-sdl/rapidast-talm/results.sh
- script: ./tests/dast/rapidast-talm/results.sh
26 changes: 13 additions & 13 deletions tests/dast/rapid-talm/chainsaw-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,38 +5,38 @@ metadata:
name: rapidast-talm
spec:
steps:
- name: step-00
try:
- name: step-00
try:
- apply:
file: 00-create-project.yaml
- assert:
file: 00-assert.yaml
- name: step-01
try:
- name: step-01
try:
- apply:
file: 01-create-sa.yaml
- assert:
file: 01-assert.yaml
- name: step-02
try:
- name: step-02
try:
- script:
timeout: 30s
content: ./create_rapidast_configmap.sh
- assert:
file: 02-assert.yaml
- name: step-03
try:
- name: step-03
try:
- apply:
file: 03-rapidast-job.yaml
- assert:
file: 03-assert.yaml
- name: step-04
try:
- name: step-04
try:
- script:
timeout: 6m
content: ./results.sh
finally:
- command:
finally:
- command:
timeout: 1m
entrypoint: oc
args:
Expand All @@ -45,7 +45,7 @@ spec:
- delete
- pod
- rapiterm-talm
- command:
- command:
timeout: 1m
entrypoint: oc
args:
Expand Down

0 comments on commit 151766d

Please sign in to comment.