Skip to content

Commit

Permalink
Fix e2e tests
Browse files Browse the repository at this point in the history
Fix the url of pipeline release.yaml as it was pointing to old
release urls and was installing 0.7 till now, as 0.10.1 got released to
both url's today, tests started failing

So better fetch the latest release yaml from last release on github
  • Loading branch information
piyush-garg authored and tekton-robot committed Jan 30, 2020
1 parent c161390 commit 3ba3efb
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
14 changes: 13 additions & 1 deletion test/e2e-common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,23 @@

# Helper functions for E2E tests.

# Check if we have a specific RELEASE_YAML global environment variable to use
# instead of detecting the latest released one from tektoncd/pipeline releases
RELEASE_YAML=${RELEASE_YAML:-}

source $(dirname $0)/../vendor/github.com/tektoncd/plumbing/scripts/e2e-tests.sh

function install_pipeline_crd() {
local latestreleaseyaml
echo ">> Deploying Tekton Pipelines"
kubectl apply -f https://storage.googleapis.com/tekton-releases/latest/release.yaml || fail_test "Tekton Pipeline installation failed"
if [[ -n ${RELEASE_YAML} ]];then
latestreleaseyaml=${RELEASE_YAML}
else
latestreleaseyaml=$(curl -s https://api.github.com/repos/tektoncd/pipeline/releases|python -c "import sys, json;x=json.load(sys.stdin);ass=x[0]['assets'];print([ x['browser_download_url'] for x in ass if x['name'] == 'release.yaml'][0])")
fi
[[ -z ${latestreleaseyaml} ]] && fail_test "Could not get latest released release.yaml"
kubectl apply -f ${latestreleaseyaml} ||
fail_test "Tekton pipeline installation failed"

# Make sure that eveything is cleaned up in the current namespace.
for res in pipelineresources tasks pipelines taskruns pipelineruns; do
Expand Down
2 changes: 1 addition & 1 deletion test/e2e-tests-ingress.sh
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ spec:
- name: ServiceUID
value: ${SERVICE_UID}
timeout: 1000s
serviceAccount: default
serviceAccountName: default
DONE
wait_until_taskrun_completed ${INGRESS_TASKRUN_NAME}

Expand Down

0 comments on commit 3ba3efb

Please sign in to comment.