Skip to content

Commit

Permalink
Migrate yaml e2e test from knative/build
Browse files Browse the repository at this point in the history
Fixes tektoncd#302

what: Add yaml tests which cover different features of knative build in
knative build pipeline like mounting secret as volume, templating
arguements.
list build yamls tests are not added:
- build with `source` key. As build added support for multiple sources
build examples included both `source` and `sources` key version of
build. In taskrun world it means the same thing
(https://github.com/knative/build/tree/master/test/sources)
- build subpath feature is not supported in taskrun
(https://github.com/knative/build/tree/master/test/subpath)
- build with multiple
steps(https://github.com/knative/build/tree/master/test/multiple-steps). taskrun contains examples with multiple
steps
- build that
panics (https://github.com/knative/build/tree/master/test/panic). Taskrun with expectation to fail is not supported
in yaml
- build with
timeout (https://github.com/knative/build/tree/master/test/build-with-timeout). Taskrun with timeout test is already present in
e2e go test
- build with custom source. Taskrun does nto support custom source
(https://github.com/knative/build/tree/master/test/custom-source)
- build that
fails (https://github.com/knative/build/tree/master/test/fail). Taskrun
does not support failed taskruns
- build with step status
(https://github.com/knative/build/tree/master/test/step-status). go e2e
tests already cover this feature
- build yaml tests git-init image directly. This is indirectly testing
git resource and does not add much value.
(https://github.com/knative/build/tree/master/test/reuse-git-init)
  • Loading branch information
Shash Reddy committed Feb 13, 2019
1 parent 709bc85 commit 9c94778
Show file tree
Hide file tree
Showing 37 changed files with 836 additions and 151 deletions.
19 changes: 0 additions & 19 deletions examples/1-bots.yaml

This file was deleted.

48 changes: 33 additions & 15 deletions examples/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,20 @@ To deploy them to your cluster (after
kubectl apply -f examples/

# To invoke the build-push Task only
kubectl apply -f examples/run/taskrun.yaml
kubectl apply -f examples/taskruns/taskrun.yaml

# To invoke the simple Pipeline
kubectl apply -f examples/run/pipelinerun.yaml
kubectl apply -f examples/pipelineruns/pipelinerun.yaml

# To invoke the Pipeline that links outputs
kubectl apply -f examples/run/output-pipelinerun.yaml
kubectl apply -f examples/pipelineruns/output-pipelinerun.yaml

# To invoke the TaskRun with embedded Resource spec and task Spec
kubectl apply -f examples/run/resource-spec-taskrun.yaml
kubectl apply -f examples/taskruns/resource-spec-taskrun.yaml
```

To view the status of applied pipelineruns and taskruns follow instructions [here](#results)

## Example Pipelines

### Simple Pipelines
Expand Down Expand Up @@ -57,14 +59,13 @@ The [Tasks](../docs/tasks.md) used by the simple examples are:

#### Simple Runs

The [run](./run/) directory contains an example [TaskRun](../docs/taskruns.md)
and an example [PipelineRun](../docs/pipelineruns.md):
The [pipelinerun](./pipelineruns/) and [taskrun](./taskruns/) directories contains examples of [PipelineRun](../docs/pipelineruns.md) and [TaskRun](../docs/taskruns.md)

- [task-run.yaml](./run/task-run.yaml) shows an example of how to manually run
- [task-run.yaml](./taskruns/taskrun.yaml) shows an example of how to manually run
the `build-push` task
- [pipeline-run.yaml](./run/pipeline-run.yaml) invokes
- [pipeline-run.yaml](./pipelineruns/pipeline-run.yaml) invokes
[the example pipeline](#example-pipeline)
- [embed-resource-spec.yaml](./run/task-run-resource-spec.yaml) shows an example
- [embed-resource-spec.yaml](./taskruns/resource-spec-taskrun.yaml) shows an example
how to create TaskRun with embedded Task spec and resource spec.

### Pipeline with outputs
Expand Down Expand Up @@ -102,16 +103,33 @@ The [run](./run/) directory contains an example

### Accessing private docker image

The [run](./run/) directory contains an example
The [taskrunrun](./taskruns/) directory contains an example
[TaskRun](../docs/Concepts.md#taskrun) with an embedded taskSpec, that pull a
private image from `gcr.io`, see
[`run/private-taskrun.yaml`](./run/private-taskrun.yaml).

This _run_ requires the secrets from [`0-secrets.yaml`](`0-secrets.yaml`) and
service accounts from [`1-bots.yaml`](`1-bots.yaml`) to be able to pull the
private image.
[`run/private-taskrun.yaml`](./taskruns/private-taskrun.yaml). This _run_ requires the secrets and service accounts to be able to pull the
private image. Required secret and service account for this run is configured in [`run/private-taskrun.yaml`](./taskruns/private-taskrun.yaml) file itself.

It uses `kubernetes.io/dockercfg` secret type but,
`kubernetes.io/dockerconfigjson` and
[Knative flavored credentials](https://github.com/knative/docs/blob/master/build/auth.md#guiding-credential-selection)
are supported too.

## Results

You can track the progress of your taskruns and pipelineruns with this command, which will also
format the output nicely.

```shell
$ kubectl get taskruns -o=custom-columns-file=./test/columns.txt
NAME TYPE STATUS START
test-git-branch Succeeded True 2019-02-11T21:21:03Z
test-git-ref Succeeded True 2019-02-11T21:21:02Z
test-git-tag Succeeded True 2019-02-11T21:21:02Z
```

```shell
$ kubectl get pipelineruns -o=custom-columns-file=./test/columns.txt
NAME TYPE STATUS START
demo-pipeline-run-1 Succeeded True 2019-02-11T21:21:03Z
output-pipeline-run Succeeded True 2019-02-11T21:35:43Z
```
2 changes: 1 addition & 1 deletion examples/build-task.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ spec:
args:
- --dockerfile=${inputs.params.pathToDockerFile}
- --destination=${outputs.resources.builtImage.url}
- --context=${inputs.params.pathToContext}
- --context=${inputs.params.pathToContext}
41 changes: 41 additions & 0 deletions examples/output-pipeline.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,45 @@
apiVersion: pipeline.knative.dev/v1alpha1
kind: Task
metadata:
name: create-file
spec:
inputs:
resources:
- name: workspace
type: git
targetPath: damnworkspace
outputs:
resources:
- name: workspace
type: git
steps:
- name: read-docs-old
image: ubuntu
command: ["/bin/bash"]
args: ['-c', 'ls -la /workspace/damnworkspace/docs/README.md'] # tests that targetpath works
- name: write-new-stuff
image: ubuntu
command: ['bash']
args: ['-c', 'echo some stuff > /workspace/damnworkspace/stuff']

---
apiVersion: pipeline.knative.dev/v1alpha1
kind: Task
metadata:
name: check-stuff-file-exists
spec:
inputs:
resources:
- name: workspace
type: git
targetPath: newworkspace
steps:
- name: read
image: ubuntu
command: ["/bin/bash"]
args: ['-c', 'cat /workspace/newworkspace/stuff'] # tests that new targetpath and previous task output is dumped
---
apiVersion: pipeline.knative.dev/v1alpha1
kind: Pipeline
metadata:
name: output-pipeline
Expand Down
40 changes: 0 additions & 40 deletions examples/output-tasks.yaml

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,4 +1,16 @@
apiVersion: pipeline.knative.dev/v1alpha1
kind: PipelineResource
metadata:
name: skaffold-git
spec:
type: git
params:
- name: revision
value: master
- name: url
value: https://github.com/GoogleContainerTools/skaffold
---
apiVersion: pipeline.knative.dev/v1alpha1
kind: PipelineRun
metadata:
name: output-pipeline-run
Expand Down
49 changes: 37 additions & 12 deletions examples/resources.yaml → examples/pipelineruns/pipelinerun.yaml
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
---
apiVersion: pipeline.knative.dev/v1alpha1
kind: PipelineResource
metadata:
name: skaffold-git
spec:
type: git
name: skaffold-image-leeroy-app
spec:
type: image
params:
- name: revision
value: master
- name: url
value: https://github.com/GoogleContainerTools/skaffold
---
value: gcr.io/christiewilson-catfactory/leeroy-app
---
apiVersion: pipeline.knative.dev/v1alpha1
kind: PipelineResource
metadata:
Expand All @@ -19,13 +18,39 @@ spec:
params:
- name: url
value: gcr.io/christiewilson-catfactory/leeroy-web
---
---
apiVersion: pipeline.knative.dev/v1alpha1
kind: PipelineResource
metadata:
name: skaffold-image-leeroy-app
spec:
type: image
name: skaffold-git
spec:
type: git
params:
- name: revision
value: master
- name: url
value: gcr.io/christiewilson-catfactory/leeroy-app
value: https://github.com/GoogleContainerTools/skaffold
---
apiVersion: pipeline.knative.dev/v1alpha1
kind: PipelineRun
metadata:
name: demo-pipeline-run-1
spec:
pipelineRef:
name: demo-pipeline
trigger:
type: manual
serviceAccount: 'default'
results:
type: 'gcs'
url: 'gcs://somebucket/results/logs'
resources:
- name: source-repo
resourceRef:
name: skaffold-git
- name: web-image
resourceRef:
name: skaffold-image-leeroy-web
- name: app-image
resourceRef:
name: skaffold-image-leeroy-app
23 changes: 0 additions & 23 deletions examples/run/pipelinerun.yaml

This file was deleted.

26 changes: 0 additions & 26 deletions examples/run/private-taskrun.yaml

This file was deleted.

31 changes: 31 additions & 0 deletions examples/0-secrets.yaml → examples/taskruns/private-taskrun.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

apiVersion: v1
kind: Secret
metadata:
Expand All @@ -23,3 +24,33 @@ data:
# --docker-email=noreply@google.com --dry-run -o yaml
# This service account is JUST a storage reader on gcr.io/build-crd-testing
.dockercfg: eyJodHRwczovL2djci5pbyI6eyJ1c2VybmFtZSI6Il9qc29uX2tleSIsInBhc3N3b3JkIjoie1xuICBcInR5cGVcIjogXCJzZXJ2aWNlX2FjY291bnRcIixcbiAgXCJwcm9qZWN0X2lkXCI6IFwiYnVpbGQtY3JkLXRlc3RpbmdcIixcbiAgXCJwcml2YXRlX2tleV9pZFwiOiBcIjA1MDJhNDFhODEyZmI2NGNlNTZhNjhlYzU4MzJhYjBiYTExYzExZTZcIixcbiAgXCJwcml2YXRlX2tleVwiOiBcIi0tLS0tQkVHSU4gUFJJVkFURSBLRVktLS0tLVxcbk1JSUV2UUlCQURBTkJna3Foa2lHOXcwQkFRRUZBQVNDQktjd2dnU2pBZ0VBQW9JQkFRQzlYNEVZT0FSYnhRTThcXG5EMnhYY2FaVGsrZ1k4ZWp1OTh0THFDUXFUckdNVzlSZVQyeE9ZNUF5Z2FsUFArcDd5WEVja3dCRC9IaE0wZ2xJXFxuN01UTGRlZUtXcityQTFMd0haeVdGVzdIME9uZjd3bllIRUhMV1VtYzNCQ09SRUR0SFJaN1pyUEJmMUhUQUEvM1xcbk1uVzVsWkhTTjlvanpTU0Z3NkFWdTZqNmF4YkJJSUo3NTRMcmdLZUFZdXJ3ZklRMlJMVHUyMDFrMklxTFliaGJcXG4zbVNWRzVSK3RiS3oxQ3ZNNTNuSENiN0NmdVZlV3NyQThrazd4SHJyTFFLTW1JOXYyc2dS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alkyOTFiblJ6TG1kdmIyZHNaUzVqYjIwdmJ5OXZZWFYwYURJdmRHOXJaVzRpTEFvZ0lDSmhkWFJvWDNCeWIzWnBaR1Z5WDNnMU1EbGZZMlZ5ZEY5MWNtd2lPaUFpYUhSMGNITTZMeTkzZDNjdVoyOXZaMnhsWVhCcGN5NWpiMjB2YjJGMWRHZ3lMM1l4TDJObGNuUnpJaXdLSUNBaVkyeHBaVzUwWDNnMU1EbGZZMlZ5ZEY5MWNtd2lPaUFpYUhSMGNITTZMeTkzZDNjdVoyOXZaMnhsWVhCcGN5NWpiMjB2Y205aWIzUXZkakV2YldWMFlXUmhkR0V2ZURVd09TOXdkV3hzTFhObFkzSmxkQzEwWlhOMGFXNW5KVFF3WW5WcGJHUXRZM0prTFhSbGMzUnBibWN1YVdGdExtZHpaWEoyYVdObFlXTmpiM1Z1ZEM1amIyMGlDbjA9In19
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: test-build-robot
secrets:
- name: test-readonly-credentials
---
apiVersion: pipeline.knative.dev/v1alpha1
kind: TaskRun
metadata:
name: pull-private-image-run
spec:
serviceAccount: test-build-robot
taskSpec:
steps:
- name: pull
# Private image is just Ubuntu
image: gcr.io/cloud-builders/docker
args: ["pull", "gcr.io/build-crd-testing/secret-sauce"]
volumeMounts:
- name: docker-socket
mountPath: /var/run/docker.sock
volumes:
- name: docker-socket
hostPath:
path: /var/run/docker.sock
type: Socket
trigger:
type: manual
File renamed without changes.
Loading

0 comments on commit 9c94778

Please sign in to comment.