1
0
mirror of https://github.com/tektoncd/catalog.git synced 2024-11-21 05:55:35 +00:00

Use latest release for e2e tests

This commit updates the catalog e2e tests to use the latest Pipelines release.
Because this release removes support for v1alpha1 Task, TaskRun, Pipeline, and
PipelineRun, and the previous release removes support for Conditions, this
commit also updates tests to use up-to-date versions of Tekton CRDs.
It does not update any catalog Tasks or Pipelines.
This commit is contained in:
Lee Bernick 2022-07-25 15:37:04 -04:00 committed by tekton-robot
parent 52194d8885
commit 5e1f510bb4
5 changed files with 82 additions and 93 deletions

View File

@ -1,5 +1,5 @@
---
apiVersion: tekton.dev/v1alpha1
apiVersion: tekton.dev/v1beta1
kind: TaskRun
metadata:
name: git-batch-merge-test-mode-merge
@ -9,16 +9,15 @@ spec:
emptyDir: {}
taskRef:
name: git-batch-merge
inputs:
params:
- name: url
value: https://github.com/kelseyhightower/nocode
- name: mode
value: "merge"
- name: batchedRefs
value: "refs/pull/4014/head refs/pull/3894/head"
params:
- name: url
value: https://github.com/kelseyhightower/nocode
- name: mode
value: "merge"
- name: batchedRefs
value: "refs/pull/4014/head refs/pull/3894/head"
---
apiVersion: tekton.dev/v1alpha1
apiVersion: tekton.dev/v1beta1
kind: TaskRun
metadata:
name: git-batch-merge-test-mode-merge-cherry-pick
@ -28,11 +27,10 @@ spec:
emptyDir: {}
taskRef:
name: git-batch-merge
inputs:
params:
- name: url
value: https://github.com/kelseyhightower/nocode
- name: mode
value: "cherry-pick"
- name: batchedRefs
value: "refs/pull/4014/head refs/pull/3894/head"
params:
- name: url
value: https://github.com/kelseyhightower/nocode
- name: mode
value: "cherry-pick"
- name: batchedRefs
value: "refs/pull/4014/head refs/pull/3894/head"

View File

@ -1,5 +1,5 @@
---
apiVersion: tekton.dev/v1alpha1
apiVersion: tekton.dev/v1beta1
kind: TaskRun
metadata:
name: git-batch-merge-test-mode-merge
@ -9,20 +9,19 @@ spec:
emptyDir: {}
taskRef:
name: git-batch-merge
inputs:
params:
- name: url
value: https://github.com/tektoncd/catalog
- name: mode
value: "merge"
- name: refspec
value: "refs/heads/main:refs/heads/main"
- name: batchedRefs
value: "refs/pull/474/head refs/pull/475/head"
- name: revision
value: 3c23c446a970c5e02c011c894e2387e685ca086c
params:
- name: url
value: https://github.com/tektoncd/catalog
- name: mode
value: "merge"
- name: refspec
value: "refs/heads/main:refs/heads/main"
- name: batchedRefs
value: "refs/pull/474/head refs/pull/475/head"
- name: revision
value: 3c23c446a970c5e02c011c894e2387e685ca086c
---
apiVersion: tekton.dev/v1alpha1
apiVersion: tekton.dev/v1beta1
kind: TaskRun
metadata:
name: git-batch-merge-test-mode-merge-cherry-pick
@ -32,15 +31,14 @@ spec:
emptyDir: {}
taskRef:
name: git-batch-merge
inputs:
params:
- name: url
value: https://github.com/tektoncd/catalog
- name: mode
value: "cherry-pick"
- name: refspec
value: "refs/heads/main:refs/heads/main"
- name: batchedRefs
value: "refs/pull/474/head refs/pull/475/head"
- name: revision
value: 3c23c446a970c5e02c011c894e2387e685ca086c
params:
- name: url
value: https://github.com/tektoncd/catalog
- name: mode
value: "cherry-pick"
- name: refspec
value: "refs/heads/main:refs/heads/main"
- name: batchedRefs
value: "refs/pull/474/head refs/pull/475/head"
- name: revision
value: 3c23c446a970c5e02c011c894e2387e685ca086c

View File

@ -1,5 +1,5 @@
---
apiVersion: tekton.dev/v1alpha1
apiVersion: tekton.dev/v1beta1
kind: TaskRun
metadata:
name: git-clone-run-noargs
@ -9,12 +9,11 @@ spec:
emptyDir: {}
taskRef:
name: git-clone
inputs:
params:
- name: url
value: https://github.com/kelseyhightower/nocode
params:
- name: url
value: https://github.com/kelseyhightower/nocode
---
apiVersion: tekton.dev/v1alpha1
apiVersion: tekton.dev/v1beta1
kind: TaskRun
metadata:
name: git-clone-run-tag
@ -24,15 +23,14 @@ spec:
emptyDir: {}
taskRef:
name: git-clone
inputs:
params:
- name: url
value: https://github.com/kelseyhightower/nocode
- name: revision
value: 1.0.0
params:
- name: url
value: https://github.com/kelseyhightower/nocode
- name: revision
value: 1.0.0
---
apiVersion: tekton.dev/v1alpha1
apiVersion: tekton.dev/v1beta1
kind: TaskRun
metadata:
name: git-clone-run-no-submodules
@ -42,14 +40,13 @@ spec:
emptyDir: {}
taskRef:
name: git-clone
inputs:
params:
- name: url
value: https://github.com/githubtraining/example-dependency
- name: submodules
value: "false"
params:
- name: url
value: https://github.com/githubtraining/example-dependency
- name: submodules
value: "false"
---
apiVersion: tekton.dev/v1alpha1
apiVersion: tekton.dev/v1beta1
kind: TaskRun
metadata:
name: git-clone-run-no-depth-2
@ -59,14 +56,13 @@ spec:
emptyDir: {}
taskRef:
name: git-clone
inputs:
params:
- name: url
value: https://github.com/kelseyhightower/nocode
- name: depth
value: "2"
params:
- name: url
value: https://github.com/kelseyhightower/nocode
- name: depth
value: "2"
---
apiVersion: tekton.dev/v1alpha1
apiVersion: tekton.dev/v1beta1
kind: TaskRun
metadata:
name: git-clone-run-sslverify-none
@ -76,14 +72,13 @@ spec:
emptyDir: {}
taskRef:
name: git-clone
inputs:
params:
- name: url
value: https://github.com/kelseyhightower/nocode
- name: sslVerify
value: "false"
params:
- name: url
value: https://github.com/kelseyhightower/nocode
- name: sslVerify
value: "false"
---
apiVersion: tekton.dev/v1alpha1
apiVersion: tekton.dev/v1beta1
kind: TaskRun
metadata:
name: git-clone-run-subdirectory
@ -93,14 +88,13 @@ spec:
emptyDir: {}
taskRef:
name: git-clone
inputs:
params:
- name: url
value: https://github.com/kelseyhightower/nocode
- name: subdirectory
value: "hellomoto"
params:
- name: url
value: https://github.com/kelseyhightower/nocode
- name: subdirectory
value: "hellomoto"
---
apiVersion: tekton.dev/v1alpha1
apiVersion: tekton.dev/v1beta1
kind: TaskRun
metadata:
name: git-clone-run-delete-existing
@ -110,9 +104,8 @@ spec:
emptyDir: {}
taskRef:
name: git-clone
inputs:
params:
- name: url
value: https://github.com/kelseyhightower/nocode
- name: deleteExisting
value: "true"
params:
- name: url
value: https://github.com/kelseyhightower/nocode
- name: deleteExisting
value: "true"

View File

@ -48,7 +48,7 @@ kubectl create -f https://raw.githubusercontent.com/tektoncd/catalog/v1beta1/kn/
`kubectl create -f pipeline_run.yaml`.
```yaml
apiVersion: tekton.dev/v1alpha1
apiVersion: tekton.dev/v1beta1
kind: PipelineRun
metadata:
generateName: kn-service-traffic-splitting-

View File

@ -17,7 +17,7 @@
# Configure the number of parallel tests running at the same time, start from 0
MAX_NUMBERS_OF_PARALLEL_TASKS=7 # => 8
export RELEASE_YAML=https://github.com/tektoncd/pipeline/releases/download/v0.35.0/release.yaml
export RELEASE_YAML=https://github.com/tektoncd/pipeline/releases/download/v0.38.0/release.yaml
source $(dirname $0)/../vendor/github.com/tektoncd/plumbing/scripts/e2e-tests.sh
source $(dirname $0)/e2e-common.sh