Skip to content

Commit

Permalink
chore: migrate castai kuttl tests to chainsaw (#823)
Browse files Browse the repository at this point in the history
* chore: migrate castai kuttl tests to chainsaw

Signed-off-by: Charles-Edouard Brétéché <[email protected]>

* merge

Signed-off-by: Charles-Edouard Brétéché <[email protected]>

---------

Signed-off-by: Charles-Edouard Brétéché <[email protected]>
  • Loading branch information
eddycharly authored Dec 4, 2023
1 parent 78d2a9c commit 4a3180d
Show file tree
Hide file tree
Showing 22 changed files with 83 additions and 52 deletions.
3 changes: 1 addition & 2 deletions .chainsaw.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,11 @@ metadata:
name: configuration
spec:
parallel: 1
testDirs:
- ./
timeouts:
apply: 1m30s
assert: 1m30s
cleanup: 1m30s
delete: 1m30s
error: 1m30s
exec: 1m30s
forceTerminationGracePeriod: 5s
16 changes: 8 additions & 8 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@ jobs:
- name: v1.28
version: v1.28.0
tests:
- argo
- aws
# - argo
# - aws
- best-practices
- castai
# - castai
# - cert-manager
- consul
- external-secret-operator
# - consul
# - external-secret-operator
- flux
- istio
- karpenter
Expand Down Expand Up @@ -105,10 +105,10 @@ jobs:
- argo
- aws
# - best-practices
# - castai
- castai
- cert-manager
# - consul
# - external-secret-operator
- consul
- external-secret-operator
# - flux
# - istio
# - karpenter
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
apiVersion: chainsaw.kyverno.io/v1alpha1
kind: Test
metadata:
creationTimestamp: null
name: add-castai-removal-disabled
spec:
steps:
- name: step-01
try:
- apply:
file: ../add-castai-removal-disabled.yaml
- assert:
file: policy-ready.yaml
- name: step-02
try:
- apply:
file: ../.kyverno-test/resources.yaml
- name: step-03
try:
- assert:
file: ../.kyverno-test/patched01.yaml
- assert:
file: ../.kyverno-test/patched02.yaml
6 changes: 0 additions & 6 deletions castai/add-castai-removal-disabled/01-policy.yaml

This file was deleted.

5 changes: 0 additions & 5 deletions castai/add-castai-removal-disabled/02-manifests.yaml

This file was deleted.

5 changes: 0 additions & 5 deletions castai/add-castai-removal-disabled/03-mutated.yaml

This file was deleted.

File renamed without changes.
26 changes: 26 additions & 0 deletions consul/enforce-min-tls-version/.chainsaw-test/chainsaw-test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
apiVersion: chainsaw.kyverno.io/v1alpha1
kind: Test
metadata:
creationTimestamp: null
name: enforce-min-tls-version
spec:
steps:
- name: step-00
try:
- assert:
file: chainsaw-step-00-assert-1.yaml
- name: step-01
try:
- apply:
file: ../enforce-min-tls-version.yaml
- assert:
file: policy-ready.yaml
- name: step-02
try:
- apply:
file: mesh-good.yaml
- apply:
expect:
- check:
($error != null): true
file: mesh-bad.yaml
6 changes: 0 additions & 6 deletions consul/enforce-min-tls-version/01-policy.yaml

This file was deleted.

7 changes: 0 additions & 7 deletions consul/enforce-min-tls-version/02-manifests.yaml

This file was deleted.

File renamed without changes.
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
apiVersion: chainsaw.kyverno.io/v1alpha1
kind: Test
metadata:
creationTimestamp: null
name: add-external-secret-prefix
spec:
steps:
- name: step-01
try:
- assert:
file: chainsaw-step-01-assert-1.yaml
- name: step-02
try:
- apply:
file: ns.yaml
- apply:
file: ../add-external-secret-prefix.yaml
- assert:
file: policy-ready.yaml
- name: step-03
try:
- apply:
file: resource.yaml
- assert:
file: resource-mutated.yaml

This file was deleted.

This file was deleted.

0 comments on commit 4a3180d

Please sign in to comment.