diff --git a/test/e2e/v1beta1/common_suite_test.go b/test/e2e/v1beta1/common_suite_test.go index ac71a8c8b9..3c66eca37a 100644 --- a/test/e2e/v1beta1/common_suite_test.go +++ b/test/e2e/v1beta1/common_suite_test.go @@ -75,6 +75,11 @@ func (b *buildPrototype) SourceCredentials(name string) *buildPrototype { return b } +func (b *buildPrototype) SourceType(sourceType string) *buildPrototype { + b.build.Spec.Source.Type = buildv1beta1.BuildSourceType(sourceType) + return b +} + func (b *buildPrototype) SourceGit(repository string) *buildPrototype { if b.build.Spec.Source.GitSource == nil { b.build.Spec.Source.GitSource = &buildv1beta1.Git{} diff --git a/test/e2e/v1beta1/e2e_one_off_builds_test.go b/test/e2e/v1beta1/e2e_one_off_builds_test.go index fc85ca21c8..e88e028ce7 100644 --- a/test/e2e/v1beta1/e2e_one_off_builds_test.go +++ b/test/e2e/v1beta1/e2e_one_off_builds_test.go @@ -69,6 +69,7 @@ var _ = Describe("Using One-Off Builds", func() { ClusterBuildStrategy("buildpacks-v3"). Namespace(testBuild.Namespace). Name(testID). + SourceType("Git"). SourceGit("https://github.com/shipwright-io/sample-go.git"). SourceContextDir("source-build"). OutputImage(outputImage.String()). @@ -88,6 +89,7 @@ var _ = Describe("Using One-Off Builds", func() { ClusterBuildStrategy("buildah-shipwright-managed-push"). Namespace(testBuild.Namespace). Name(testID). + SourceType("Git"). SourceGit("https://github.com/shipwright-io/sample-go.git"). SourceContextDir("docker-build"). Dockerfile("Dockerfile").