Skip to content

Commit 2718c44

Browse files
committed
test forward update
1 parent cf256e0 commit 2718c44

File tree

2 files changed

+6
-17
lines changed

2 files changed

+6
-17
lines changed

.tekton/pipeline-service-test.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ spec:
3333
- name: target_branch
3434
value: "{{ target_branch }}"
3535
- name: results_url
36-
value: "https://github.com/openshift-pipelines/tektoncd-results"
36+
value: "https://github.com/avinal/tektoncd-results"
3737
timeouts:
3838
pipeline: "1h0m0s"
3939
workspaces:

.tekton/tasks/tekton-results-upstream-e2e.yaml

Lines changed: 5 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -31,25 +31,14 @@ spec:
3131
mkdir -p ${SA_TOKEN_PATH} ${SSL_CERT_PATH}
3232
kubectl get secrets tekton-results-tls -n tekton-results --template='{{index .data "tls.crt"}}' | base64 -d > ${SSL_CERT_PATH}/tekton-results-cert.pem
3333
kubectl get secrets tekton-results-tls -n tekton-results --template='{{index .data "tls.key"}}' | base64 -d > ${SSL_CERT_PATH}/tekton-results-key.pem
34+
oc annotate ingresses.config/cluster ingress.operator.openshift.io/default-enable-http2=true
3435
kubectl apply -f ./test/e2e/kustomize/rbac.yaml
3536
service_accounts=(all-namespaces-read-access single-namespace-read-access)
3637
for service_account in "${service_accounts[@]}"; do
3738
kubectl create token "$service_account" > "${SA_TOKEN_PATH}"/"$service_account"
3839
done
39-
RESULT_ROUTE=$(kubectl get route tekton-results -n tekton-results --template='{{.spec.host}}')
40-
cat <<EOF > patch-test-config.patch
41-
diff --git a/test/e2e/grpc_client.go b/test/e2e/grpc_client.go
42-
--- a/test/e2e/grpc_client.go
43-
+++ b/test/e2e/grpc_client.go
44-
@@ -36,4 +36,4 @@ const (
45-
certFile = "tekton-results-cert.pem"
46-
- apiServerName = "tekton-results-api-service.tekton-pipelines.svc.cluster.local"
47-
- apiServerAddress = "localhost:50051"
48-
+ apiServerName = "tekton-results-api-service.tekton-results.svc.cluster.local"
49-
+ apiServerAddress = "$RESULT_ROUTE"
50-
defCertFolder = "/tmp/tekton-results/ssl"
51-
52-
EOF
53-
git apply patch-test-config.patch
40+
export API_SERVER_NAME="tekton-results-api-service.tekton-results.svc.cluster.local"
41+
export API_SERVER_ADDR="https://$(kubectl get route tekton-results -n tekton-results --template='{{.spec.host}}'):443"
42+
echo $API_SERVER_ADDR
5443
export CGO_ENABLED=0
55-
go test -v -count=1 --tags=e2e ./test/e2e/...
44+
go test -v -count=1 --tags=e2e $(go list --tags=e2e ./test/e2e/... | grep -v /client)

0 commit comments

Comments
 (0)