File tree Expand file tree Collapse file tree 3 files changed +19
-2
lines changed
pod-security-cel/baseline/disallow-host-process/.chainsaw-test Expand file tree Collapse file tree 3 files changed +19
-2
lines changed Original file line number Diff line number Diff line change 11name : " Runs E2E Tests"
22description : " Runs E2E tests using chainsaw"
33inputs :
4+ k8s-version :
5+ description : " Kubernetes version"
6+ required : false
47 tests :
58 description : " Test regex"
69 required : true
1619 shell : bash
1720 run : |
1821 set -e
19- chainsaw test --config .chainsaw.yaml --include-test-regex '^chainsaw$/${{ matrix.tests }}' --test-file='${{ inputs.test-file }}' --no-color=false
22+
23+ K8S_VERSION="${{ inputs.k8s-version }}"
24+ TEST_FILE="${{ inputs.test-file }}"
25+ TESTS="${{ inputs.tests }}"
26+
27+ if [[ "$TEST_FILE" == "chainsaw-test-vap" && -n "$K8S_VERSION" ]] &&
28+ [[ "$K8S_VERSION" == "v1.26."* || "$K8S_VERSION" == "v1.27."* ]]; then
29+ chainsaw test --config .chainsaw.yaml --include-test-regex '^chainsaw$/${{ inputs.tests }}' --test-file='${{ inputs.test-file }}' --no-color=false --selector='!skipForVapAlpha'
30+ else
31+ chainsaw test --config .chainsaw.yaml --include-test-regex '^chainsaw$/${{ inputs.tests }}' --test-file='${{ inputs.test-file }}' --no-color=false
32+ fi
Original file line number Diff line number Diff line change 9595 with :
9696 tests : ${{ matrix.tests }}
9797 test-file : chainsaw-test-vap
98+ k8s-version : ${{ matrix.k8s-version.version }}
9899
99100 validatingadmissionpolicies-tests-above-1-28 :
100101 runs-on : ubuntu-latest
@@ -130,4 +131,5 @@ jobs:
130131 uses : ./.github/actions/run-tests
131132 with :
132133 tests : ${{ matrix.tests }}
133- test-file : chainsaw-test-vap
134+ test-file : chainsaw-test-vap
135+ k8s-version : ${{ matrix.k8s-version.version }}
Original file line number Diff line number Diff line change @@ -4,6 +4,8 @@ kind: Test
44metadata :
55 creationTimestamp : null
66 name : disallow-host-process
7+ labels :
8+ skipForVapAlpha : " "
79spec :
810 # disable templating because it can cause issues with CEL expressions
911 template : false
You can’t perform that action at this time.
0 commit comments