From 1ac3262e88e5452858776809c7208a5ad2971bcc Mon Sep 17 00:00:00 2001 From: chhsia0 Date: Wed, 4 Sep 2019 11:26:21 -0700 Subject: [PATCH] Fixed e2e test errors. --- cmd/imagedigestexporter/digest.go | 2 +- cmd/imagedigestexporter/digest_test.go | 2 +- examples/taskruns/task-multiple-output-image.yaml | 2 +- examples/taskruns/taskrun-cloud-event.yaml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/cmd/imagedigestexporter/digest.go b/cmd/imagedigestexporter/digest.go index 7141ee12fb7..6e8ea6f232c 100644 --- a/cmd/imagedigestexporter/digest.go +++ b/cmd/imagedigestexporter/digest.go @@ -1,7 +1,7 @@ package main import ( - "github.com/google/go-containerregistry/pkg/v1" + v1 "github.com/google/go-containerregistry/pkg/v1" ) // GetDigest returns the digest of an OCI image index. If there is only one image in the index, the diff --git a/cmd/imagedigestexporter/digest_test.go b/cmd/imagedigestexporter/digest_test.go index 244ce18712f..44607e264b7 100644 --- a/cmd/imagedigestexporter/digest_test.go +++ b/cmd/imagedigestexporter/digest_test.go @@ -4,7 +4,7 @@ import ( "testing" "github.com/google/go-cmp/cmp" - "github.com/google/go-containerregistry/pkg/v1" + v1 "github.com/google/go-containerregistry/pkg/v1" "github.com/google/go-containerregistry/pkg/v1/empty" "github.com/google/go-containerregistry/pkg/v1/random" ) diff --git a/examples/taskruns/task-multiple-output-image.yaml b/examples/taskruns/task-multiple-output-image.yaml index dacb500f4c3..dc467b7804d 100644 --- a/examples/taskruns/task-multiple-output-image.yaml +++ b/examples/taskruns/task-multiple-output-image.yaml @@ -104,7 +104,7 @@ spec: } ] } - EOF + EOF --- apiVersion: tekton.dev/v1alpha1 kind: TaskRun diff --git a/examples/taskruns/taskrun-cloud-event.yaml b/examples/taskruns/taskrun-cloud-event.yaml index d855c1af2cf..419eb5cfe57 100644 --- a/examples/taskruns/taskrun-cloud-event.yaml +++ b/examples/taskruns/taskrun-cloud-event.yaml @@ -112,7 +112,7 @@ spec: { "mediaType": "application/vnd.oci.image.index.v1+json", "size": 314, - "digest": "sha256:NOTAREALDIGEST" + "digest": "sha256:deadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeef" } ] }