Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .tekton/pipeline/test-pipeline-service-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,9 @@ spec:
taskRef:
name: destroy-cluster
when:
- input: "$(tasks.deploy-cluster.status)"
operator: notin
values: ["None", "Failed"]
- input: "$(tasks.test-pipeline-service.status)"
operator: in
values: ["Succeeded"]
params:
- name: cluster-name
value: "$(tasks.generate-cluster-name.results.cluster-name)"
Expand Down
6 changes: 3 additions & 3 deletions .tekton/pipeline/test-pipeline-service-upgrade.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -147,9 +147,9 @@ spec:
taskRef:
name: destroy-cluster
when:
- input: "$(tasks.deploy-cluster.status)"
operator: notin
values: ["None", "Failed"]
- input: "$(tasks.test-baseline.status)"
operator: in
values: ["Succeeded"]
params:
- name: cluster-name
value: "$(tasks.generate-cluster-name.results.cluster-name)"
Expand Down
5 changes: 4 additions & 1 deletion operator/test/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,10 @@ init() {
setup_test() {
echo "[Setup]"
echo -n " - Namespace configuration: "
kubectl apply -k "$SCRIPT_DIR/manifests/setup/pipeline-service" >"$DEBUG_OUTPUT"
if ! timeout 300s bash -c "while ! kubectl apply -k \"$SCRIPT_DIR/manifests/setup/pipeline-service\" >\"$DEBUG_OUTPUT\" 2>&1; do printf '.'; sleep 3; done"; then
echo "Setup test is not ready" >&2
exit 1
fi
echo "OK"
echo
}
Expand Down