forked from keptn/lifecycle-toolkit
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: refactor kuttl test using env var (keptn#1214)
Signed-off-by: realanna <[email protected]>
- Loading branch information
Showing
9 changed files
with
39 additions
and
34 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 was deleted.
Oops, something went wrong.
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,11 @@ | ||
apiVersion: kuttl.dev/v1 | ||
kind: TestStep | ||
commands: # generating job and metric based on namespace to avoid interference between runs | ||
- script: | | ||
export NAME=$( echo $NAMESPACE | tr -d -) | ||
echo "installing first job" | ||
envsubst < job-no-metric.yaml | kubectl apply -f - | ||
- script: | | ||
export NAME=$( echo $NAMESPACE | tr -d -) | ||
echo "asserting first job" | ||
kubectl wait --for=condition=complete job $NAME-job1 -n $NAMESPACE |
This file was deleted.
Oops, something went wrong.
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,12 @@ | ||
apiVersion: kuttl.dev/v1 | ||
kind: TestStep | ||
commands: | ||
- script: | # generating job and metric based on namespace to avoid interference between runs | ||
export NAME=$( echo $NAMESPACE | tr -d -) | ||
echo "installing second job" | ||
envsubst < job-existing-metric.yaml | kubectl apply -f - | ||
- script: | # generating job assertion file | ||
export NAME=$( echo $NAMESPACE | tr -d -) | ||
echo "asserting second job" | ||
kubectl wait --for=condition=complete job $NAME-job2 -n $NAMESPACE |
This file was deleted.
Oops, something went wrong.
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