-
Notifications
You must be signed in to change notification settings - Fork 126
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
17 changed files
with
383 additions
and
32 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
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
19 changes: 17 additions & 2 deletions
19
test/integration/validate-taskdefinition/00-teststep-install.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 |
---|---|---|
@@ -1,7 +1,22 @@ | ||
apiVersion: kuttl.dev/v1beta1 | ||
kind: TestStep | ||
apply: | ||
- goodtaskdefinition.yaml | ||
- td_good_container.yaml | ||
- td_good_function.yaml | ||
- td_good_python.yaml | ||
- td_good_deno.yaml | ||
commands: | ||
- command: kubectl apply -f badtaskdefinition.yaml | ||
- command: kubectl apply -f td_bad_empty.yaml | ||
ignoreFailure: true # we must install ignoring the validating webhook error to proceed with the test | ||
- command: kubectl apply -f td_bad_container_function.yaml | ||
ignoreFailure: true # we must install ignoring the validating webhook error to proceed with the test | ||
- command: kubectl apply -f td_bad_container_python.yaml | ||
ignoreFailure: true # we must install ignoring the validating webhook error to proceed with the test | ||
- command: kubectl apply -f td_bad_container_deno.yaml | ||
ignoreFailure: true # we must install ignoring the validating webhook error to proceed with the test | ||
- command: kubectl apply -f td_bad_function_python.yaml | ||
ignoreFailure: true # we must install ignoring the validating webhook error to proceed with the test | ||
- command: kubectl apply -f td_bad_function_deno.yaml | ||
ignoreFailure: true # we must install ignoring the validating webhook error to proceed with the test | ||
- command: kubectl apply -f td_bad_python_deno.yaml | ||
ignoreFailure: true # we must install ignoring the validating webhook error to proceed with the test |
13 changes: 11 additions & 2 deletions
13
test/integration/validate-taskdefinition/01-teststep-assert.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 |
---|---|---|
@@ -1,6 +1,15 @@ | ||
apiVersion: kuttl.dev/v1beta1 | ||
kind: TestStep | ||
error: # this checks that kubectl get resource fails, AKA bad CRD not added | ||
- badtaskdefinition.yaml | ||
- td_bad_empty.yaml | ||
- td_bad_container_function.yaml | ||
- td_bad_container_python.yaml | ||
- td_bad_container_deno.yaml | ||
- td_bad_function_python.yaml | ||
- td_bad_function_deno.yaml | ||
- td_bad_python_deno.yaml | ||
assert: # this checks that kubectl get resource succeeds | ||
- goodtaskdefinition.yaml | ||
- td_good_container.yaml | ||
- td_good_function.yaml | ||
- td_good_python.yaml | ||
- td_good_deno.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
Oops, something went wrong.