Skip to content

Commit

Permalink
more
Browse files Browse the repository at this point in the history
  • Loading branch information
qu1queee committed Jan 22, 2024
1 parent d996e37 commit d1c9144
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/e2e/v1beta1/common_suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{}
Expand Down
2 changes: 2 additions & 0 deletions test/e2e/v1beta1/e2e_one_off_builds_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()).
Expand All @@ -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").
Expand Down

0 comments on commit d1c9144

Please sign in to comment.