-
Notifications
You must be signed in to change notification settings - Fork 253
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: migrate kuttl tests to chainsaw (#821)
Signed-off-by: Charles-Edouard Brétéché <[email protected]>
- Loading branch information
1 parent
88d92ec
commit eb9c584
Showing
60 changed files
with
261 additions
and
273 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
File renamed without changes.
File renamed without changes.
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 |
---|---|---|
|
@@ -3,4 +3,4 @@ kind: ClusterPolicy | |
metadata: | ||
name: application-field-validation | ||
status: | ||
ready: true | ||
ready: true |
34 changes: 34 additions & 0 deletions
34
argo/application-field-validation/.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,34 @@ | ||
apiVersion: chainsaw.kyverno.io/v1alpha1 | ||
kind: Test | ||
metadata: | ||
creationTimestamp: null | ||
name: application-field-validation | ||
spec: | ||
steps: | ||
- name: step-01 | ||
try: | ||
- assert: | ||
file: chainsaw-step-01-assert-1.yaml | ||
- name: step-02 | ||
try: | ||
- script: | ||
content: | | ||
sed 's/validationFailureAction: audit/validationFailureAction: Enforce/' ../application-field-validation.yaml | kubectl create -f - | ||
- assert: | ||
file: chainsaw-step-02-assert-1.yaml | ||
- name: step-03 | ||
try: | ||
- apply: | ||
file: good-application.yaml | ||
- apply: | ||
expect: | ||
- check: | ||
($error != null): true | ||
file: bad-application.yaml | ||
- name: step-99 | ||
try: | ||
- delete: | ||
ref: | ||
apiVersion: kyverno.io/v1 | ||
kind: ClusterPolicy | ||
name: application-field-validation |
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.
This file was deleted.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
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 |
---|---|---|
|
@@ -3,4 +3,4 @@ kind: ClusterPolicy | |
metadata: | ||
name: application-prevent-default-project | ||
status: | ||
ready: true | ||
ready: true |
34 changes: 34 additions & 0 deletions
34
argo/application-prevent-default-project/.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,34 @@ | ||
apiVersion: chainsaw.kyverno.io/v1alpha1 | ||
kind: Test | ||
metadata: | ||
creationTimestamp: null | ||
name: application-prevent-default-project | ||
spec: | ||
steps: | ||
- name: step-01 | ||
try: | ||
- assert: | ||
file: chainsaw-step-01-assert-1.yaml | ||
- name: step-02 | ||
try: | ||
- script: | ||
content: | | ||
sed 's/validationFailureAction: audit/validationFailureAction: Enforce/' ../application-prevent-default-project.yaml | kubectl create -f - | ||
- assert: | ||
file: chainsaw-step-02-assert-1.yaml | ||
- name: step-03 | ||
try: | ||
- apply: | ||
file: good-application.yaml | ||
- apply: | ||
expect: | ||
- check: | ||
($error != null): true | ||
file: bad-application.yaml | ||
- name: step-99 | ||
try: | ||
- delete: | ||
ref: | ||
apiVersion: kyverno.io/v1 | ||
kind: ClusterPolicy | ||
name: application-prevent-default-project |
File renamed without changes.
This file was deleted.
Oops, something went wrong.
7 changes: 0 additions & 7 deletions
7
argo/application-prevent-default-project/03-applications.yaml
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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 |
---|---|---|
|
@@ -3,4 +3,4 @@ kind: ClusterPolicy | |
metadata: | ||
name: application-prevent-updates-project | ||
status: | ||
ready: true | ||
ready: true |
36 changes: 36 additions & 0 deletions
36
argo/application-prevent-updates-project/.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,36 @@ | ||
apiVersion: chainsaw.kyverno.io/v1alpha1 | ||
kind: Test | ||
metadata: | ||
creationTimestamp: null | ||
name: application-prevent-updates-project | ||
spec: | ||
steps: | ||
- name: step-01 | ||
try: | ||
- assert: | ||
file: chainsaw-step-01-assert-1.yaml | ||
- name: step-02 | ||
try: | ||
- script: | ||
content: | | ||
sed 's/validationFailureAction: audit/validationFailureAction: Enforce/' ../application-prevent-updates-project.yaml | kubectl create -f - | ||
- assert: | ||
file: chainsaw-step-02-assert-1.yaml | ||
- name: step-03 | ||
try: | ||
- apply: | ||
file: application.yaml | ||
- apply: | ||
file: application-update.yaml | ||
- apply: | ||
expect: | ||
- check: | ||
($error != null): true | ||
file: application-bad-update.yaml | ||
- name: step-99 | ||
try: | ||
- delete: | ||
ref: | ||
apiVersion: kyverno.io/v1 | ||
kind: ClusterPolicy | ||
name: application-prevent-updates-project |
This file was deleted.
Oops, something went wrong.
9 changes: 0 additions & 9 deletions
9
argo/application-prevent-updates-project/03-applications.yaml
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
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 |
---|---|---|
|
@@ -3,4 +3,4 @@ kind: ClusterPolicy | |
metadata: | ||
name: applicationset-name-matches-project | ||
status: | ||
ready: true | ||
ready: true |
34 changes: 34 additions & 0 deletions
34
argo/applicationset-name-matches-project/.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,34 @@ | ||
apiVersion: chainsaw.kyverno.io/v1alpha1 | ||
kind: Test | ||
metadata: | ||
creationTimestamp: null | ||
name: applicationset-name-matches-project | ||
spec: | ||
steps: | ||
- name: step-01 | ||
try: | ||
- assert: | ||
file: chainsaw-step-01-assert-1.yaml | ||
- name: step-02 | ||
try: | ||
- script: | ||
content: | | ||
sed 's/validationFailureAction: audit/validationFailureAction: Enforce/' ../applicationset-name-matches-project.yaml | kubectl create -f - | ||
- assert: | ||
file: chainsaw-step-02-assert-1.yaml | ||
- name: step-03 | ||
try: | ||
- apply: | ||
file: good-appset.yaml | ||
- apply: | ||
expect: | ||
- check: | ||
($error != null): true | ||
file: bad-appset.yaml | ||
- name: step-99 | ||
try: | ||
- delete: | ||
ref: | ||
apiVersion: kyverno.io/v1 | ||
kind: ClusterPolicy | ||
name: applicationset-name-matches-project |
File renamed without changes.
This file was deleted.
Oops, something went wrong.
7 changes: 0 additions & 7 deletions
7
argo/applicationset-name-matches-project/03-applicationset.yaml
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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 |
---|---|---|
|
@@ -3,4 +3,4 @@ kind: ClusterPolicy | |
metadata: | ||
name: appproject-clusterresourceblacklist | ||
status: | ||
ready: true | ||
ready: true |
Oops, something went wrong.