diff --git a/pkg/reconciler/v1alpha1/taskrun/resources/build_step_test.go b/pkg/reconciler/v1alpha1/taskrun/resources/build_step_test.go index 7904e79da2f..aca0af59ac0 100644 --- a/pkg/reconciler/v1alpha1/taskrun/resources/build_step_test.go +++ b/pkg/reconciler/v1alpha1/taskrun/resources/build_step_test.go @@ -34,7 +34,7 @@ func TestPostBuildSteps(t *testing.T) { Namespace: "foo", }, Spec: v1alpha1.TaskRunSpec{ - TaskRef: v1alpha1.TaskRef{ + TaskRef: &v1alpha1.TaskRef{ Name: "", APIVersion: "a1", }, @@ -129,7 +129,7 @@ func TestPreBuildSteps(t *testing.T) { Namespace: "foo", }, Spec: v1alpha1.TaskRunSpec{ - TaskRef: v1alpha1.TaskRef{ + TaskRef: &v1alpha1.TaskRef{ Name: "", APIVersion: "a1", }, diff --git a/pkg/reconciler/v1alpha1/taskrun/resources/input_resource_test.go b/pkg/reconciler/v1alpha1/taskrun/resources/input_resource_test.go index e00134c814e..6984712705f 100644 --- a/pkg/reconciler/v1alpha1/taskrun/resources/input_resource_test.go +++ b/pkg/reconciler/v1alpha1/taskrun/resources/input_resource_test.go @@ -242,12 +242,13 @@ func TestAddResourceToBuild(t *testing.T) { }, }, Spec: buildv1alpha1.BuildSpec{ - Source: &buildv1alpha1.SourceSpec{ + Sources: []buildv1alpha1.SourceSpec{{ + Name: "the-git-with-branch", Git: &buildv1alpha1.GitSourceSpec{ Url: "https://github.com/grafeas/kritis", Revision: "branch", }, - }, + }}, }, }, }, { diff --git a/pkg/reconciler/v1alpha1/taskrun/taskrun_test.go b/pkg/reconciler/v1alpha1/taskrun/taskrun_test.go index b1b9a44894b..9633d5c0b13 100644 --- a/pkg/reconciler/v1alpha1/taskrun/taskrun_test.go +++ b/pkg/reconciler/v1alpha1/taskrun/taskrun_test.go @@ -681,12 +681,13 @@ func TestReconcile(t *testing.T) { name: "taskrun-with-taskspec", taskRun: taskruns[6], wantedBuildSpec: buildv1alpha1.BuildSpec{ - Source: &buildv1alpha1.SourceSpec{ + Sources: []buildv1alpha1.SourceSpec{{ + Name: "git-resource", Git: &buildv1alpha1.GitSourceSpec{ Url: "https://foo.git", Revision: "master", }, - }, + }}, Steps: []corev1.Container{ entrypointCopyStep, {