Skip to content

Commit ba552b0

Browse files
Merge pull request #5478 from smarterclayton/fix_binary_build_extended_tests
Fix extended tests for --from-* binary
2 parents 7042665 + 72a6346 commit ba552b0

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

test/extended/builds/start_build.go

+8-8
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ import (
1717
var _ = g.Describe("builds: parallel: oc start-build", func() {
1818
defer g.GinkgoRecover()
1919
var (
20-
buildFixture = exutil.FixturePath("..", "extended", "fixtures", "test-build.json")
21-
exampleDockerfile = exutil.FixturePath("..", "extended", "fixtures", "test-build-app", "Dockerfile")
22-
exampleBuild = exutil.FixturePath("..", "extended", "fixtures", "test-build-app")
23-
oc = exutil.NewCLI("cli-start-build", exutil.KubeConfigPath())
20+
buildFixture = exutil.FixturePath("..", "extended", "fixtures", "test-build.json")
21+
exampleGemfile = exutil.FixturePath("..", "extended", "fixtures", "test-build-app", "Gemfile")
22+
exampleBuild = exutil.FixturePath("..", "extended", "fixtures", "test-build-app")
23+
oc = exutil.NewCLI("cli-start-build", exutil.KubeConfigPath())
2424
)
2525

2626
g.JustBeforeEach(func() {
@@ -55,12 +55,12 @@ var _ = g.Describe("builds: parallel: oc start-build", func() {
5555
g.Describe("binary builds", func() {
5656
g.It("should accept --from-file as input", func() {
5757
g.By("starting the build with a Dockerfile")
58-
out, err := oc.Run("start-build").Args("sample-build", "--follow", "--wait", fmt.Sprintf("--from-file=%s", exampleDockerfile)).Output()
58+
out, err := oc.Run("start-build").Args("sample-build", "--follow", "--wait", fmt.Sprintf("--from-file=%s", exampleGemfile)).Output()
5959
g.By(fmt.Sprintf("verifying the build %q status", out))
6060
o.Expect(err).NotTo(o.HaveOccurred())
6161
o.Expect(out).To(o.ContainSubstring("Uploading file"))
6262
o.Expect(out).To(o.ContainSubstring("as binary input for the build ..."))
63-
o.Expect(out).To(o.ContainSubstring("Successfully built"))
63+
o.Expect(out).To(o.ContainSubstring("Your bundle is complete"))
6464

6565
build, err := oc.REST().Builds(oc.Namespace()).Get("sample-build-1")
6666
o.Expect(err).NotTo(o.HaveOccurred())
@@ -74,7 +74,7 @@ var _ = g.Describe("builds: parallel: oc start-build", func() {
7474
o.Expect(err).NotTo(o.HaveOccurred())
7575
o.Expect(out).To(o.ContainSubstring("Uploading directory"))
7676
o.Expect(out).To(o.ContainSubstring("as binary input for the build ..."))
77-
o.Expect(out).To(o.ContainSubstring("Successfully built"))
77+
o.Expect(out).To(o.ContainSubstring("Your bundle is complete"))
7878

7979
build, err := oc.REST().Builds(oc.Namespace()).Get("sample-build-1")
8080
o.Expect(err).NotTo(o.HaveOccurred())
@@ -88,7 +88,7 @@ var _ = g.Describe("builds: parallel: oc start-build", func() {
8888
o.Expect(err).NotTo(o.HaveOccurred())
8989
o.Expect(out).To(o.ContainSubstring("Uploading Git repository"))
9090
o.Expect(out).To(o.ContainSubstring("as binary input for the build ..."))
91-
o.Expect(out).To(o.ContainSubstring("Successfully built"))
91+
o.Expect(out).To(o.ContainSubstring("Your bundle is complete"))
9292

9393
build, err := oc.REST().Builds(oc.Namespace()).Get("sample-build-1")
9494
o.Expect(err).NotTo(o.HaveOccurred())

0 commit comments

Comments
 (0)