From b04cd02032246b0d3dd17792d6fb2fde1829263b Mon Sep 17 00:00:00 2001 From: Avinal Kumar Date: Tue, 6 Jun 2023 14:51:32 +0530 Subject: [PATCH] test forward update --- .tekton/pipeline-service-test.yaml | 2 +- .../tasks/tekton-results-upstream-e2e.yaml | 19 +++---------------- 2 files changed, 4 insertions(+), 17 deletions(-) diff --git a/.tekton/pipeline-service-test.yaml b/.tekton/pipeline-service-test.yaml index fc03bd735..9c33260e0 100644 --- a/.tekton/pipeline-service-test.yaml +++ b/.tekton/pipeline-service-test.yaml @@ -29,7 +29,7 @@ spec: - name: target_branch value: "{{ target_branch }}" - name: results_url - value: "https://github.com/openshift-pipelines/tektoncd-results" + value: "https://github.com/avinal/tektoncd-results" timeouts: pipeline: "1h0m0s" workspaces: diff --git a/.tekton/tasks/tekton-results-upstream-e2e.yaml b/.tekton/tasks/tekton-results-upstream-e2e.yaml index 33eb49020..41439a3bc 100644 --- a/.tekton/tasks/tekton-results-upstream-e2e.yaml +++ b/.tekton/tasks/tekton-results-upstream-e2e.yaml @@ -36,20 +36,7 @@ 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 < 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}}')" 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)