Skip to content

Commit

Permalink
test forward update
Browse files Browse the repository at this point in the history
  • Loading branch information
avinal committed Jul 24, 2023
1 parent a26dadf commit 8918fb8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 17 deletions.
1 change: 0 additions & 1 deletion .tekton/pipeline/acceptance-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ spec:
workspaces:
- name: source
- name: tekton-results-source
- name: kubeconfig-dir
- name: shared-workspace
tasks:
- name: generate-cluster-name
Expand Down
20 changes: 4 additions & 16 deletions .tekton/tasks/tekton-results-upstream-e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,20 +36,8 @@ spec:
for service_account in "${service_accounts[@]}"; do
kubectl create token "$service_account" > "${SA_TOKEN_PATH}"/"$service_account"
done
RESULT_ROUTE=$(kubectl get route tekton-results -n tekton-results --template='{{.spec.host}}')
cat <<EOF > patch-test-config.patch
diff --git a/test/e2e/grpc_client.go b/test/e2e/grpc_client.go
--- a/test/e2e/grpc_client.go
+++ b/test/e2e/grpc_client.go
@@ -36,4 +36,4 @@ const (
certFile = "tekton-results-cert.pem"
- apiServerName = "tekton-results-api-service.tekton-pipelines.svc.cluster.local"
- apiServerAddress = "localhost:50051"
+ apiServerName = "tekton-results-api-service.tekton-results.svc.cluster.local"
+ apiServerAddress = "$RESULT_ROUTE"
defCertFolder = "/tmp/tekton-results/ssl"
EOF
git apply patch-test-config.patch
export API_SERVER_NAME="tekton-results-api-service.tekton-results.svc.cluster.local"
export API_SERVER_ADDR="https://$(kubectl get route tekton-results -n tekton-results --template='{{.spec.host}}'):443"
echo $API_SERVER_ADDR
export CGO_ENABLED=0
go test -v -count=1 --tags=e2e ./test/e2e/...
go test -v -count=1 --tags=e2e $(go list --tags=e2e ./test/e2e/... | grep -v /client)
1 change: 1 addition & 0 deletions ci/images/ci-runner/hack/bin/deploy-cluster.sh
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ deploy_cluster() {
exit 1
fi
check_clusteroperators
oc annotate ingresses.config/cluster ingress.operator.openshift.io/default-enable-http2=true
}

deploy_cluster

0 comments on commit 8918fb8

Please sign in to comment.