-
Notifications
You must be signed in to change notification settings - Fork 254
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: migrate castai kuttl tests to chainsaw (#823)
* 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
1 parent
78d2a9c
commit 4a3180d
Showing
22 changed files
with
83 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
castai/add-castai-removal-disabled/.chainsaw-test/chainsaw-test.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
File renamed without changes.
26 changes: 26 additions & 0 deletions
26
consul/enforce-min-tls-version/.chainsaw-test/chainsaw-test.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
File renamed without changes.
25 changes: 25 additions & 0 deletions
25
external-secret-operator/add-external-secret-prefix/.chainsaw-test/chainsaw-test.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
7 changes: 0 additions & 7 deletions
7
external-secret-operator/add-external-secret-prefix/02-policy.yaml
This file was deleted.
Oops, something went wrong.
6 changes: 0 additions & 6 deletions
6
external-secret-operator/add-external-secret-prefix/03-resource.yaml
This file was deleted.
Oops, something went wrong.