Skip to content

Commit

Permalink
Revert "Use the cf.Push helper everywhere"
Browse files Browse the repository at this point in the history
This reverts commit 6c01d6b.

Co-authored-by: Andrew Costa <[email protected]>
  • Loading branch information
2 people authored and nickjameswebb committed Jul 8, 2020
1 parent 8ca6197 commit 5cba29d
Show file tree
Hide file tree
Showing 56 changed files with 166 additions and 105 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,7 @@ unless the test specifically needs to use a buildpack name or URL specific to th
For example:

```go
Expect(cf.Push(appName,
Expect(cf.Cf("push", appName,
"-b", buildpackName, // specify buildpack
"-m", DEFAULT_MEMORY_LIMIT, // specify memory limit
"-d", Config.AppsDomain, // specify app domain
Expand Down
10 changes: 5 additions & 5 deletions apps/admin_buildpack_lifecycle.go
Original file line number Diff line number Diff line change
Expand Up @@ -267,15 +267,15 @@ exit 1
}

itIsUsedForTheApp := func() {
push := cf.Push(appName, "-m", DEFAULT_MEMORY_LIMIT, "-p", appPath, "-d", Config.GetAppsDomain()).Wait(Config.CfPushTimeoutDuration())
push := cf.Cf("push", appName, "-m", DEFAULT_MEMORY_LIMIT, "-p", appPath, "-d", Config.GetAppsDomain()).Wait(Config.CfPushTimeoutDuration())

Expect(push).To(Exit(0))
appOutput := cf.Cf("app", appName).Wait()
Expect(appOutput).To(Say("buildpacks?:\\s+Simple"))
}

itDoesNotDetectForEmptyApp := func() {
push := cf.Push(appName, "-m", DEFAULT_MEMORY_LIMIT, "-p", appPath, "-d", Config.GetAppsDomain()).Wait(Config.CfPushTimeoutDuration())
push := cf.Cf("push", appName, "-m", DEFAULT_MEMORY_LIMIT, "-p", appPath, "-d", Config.GetAppsDomain()).Wait(Config.CfPushTimeoutDuration())

Expect(push).To(Exit(1))
Expect(combineOutput(push.Out, push.Err)).To(Say(noAppDetectedErrorRegexp))
Expand All @@ -286,7 +286,7 @@ exit 1
Expect(cf.Cf("update-buildpack", buildpackName, "--disable").Wait()).To(Exit(0))
})

push := cf.Push(appName, "-m", DEFAULT_MEMORY_LIMIT, "-p", appPath, "-d", Config.GetAppsDomain()).Wait(Config.CfPushTimeoutDuration())
push := cf.Cf("push", appName, "-m", DEFAULT_MEMORY_LIMIT, "-p", appPath, "-d", Config.GetAppsDomain()).Wait(Config.CfPushTimeoutDuration())
Expect(push).To(Exit(1))
Expect(combineOutput(push.Out, push.Err)).To(Say(noAppDetectedErrorRegexp))
}
Expand All @@ -312,7 +312,7 @@ exit 1
}

itRaisesBuildpackReleaseFailedError := func() {
push := cf.Push(appName, "-b", buildpackName, "-m", DEFAULT_MEMORY_LIMIT, "-p", appPath, "-d", Config.GetAppsDomain()).Wait(Config.CfPushTimeoutDuration())
push := cf.Cf("push", appName, "-b", buildpackName, "-m", DEFAULT_MEMORY_LIMIT, "-p", appPath, "-d", Config.GetAppsDomain()).Wait(Config.CfPushTimeoutDuration())
Expect(push).To(Exit(1))
Expect(combineOutput(push.Out, push.Err)).To(Say(buildpackReleaseFailedRegexp))
}
Expand Down Expand Up @@ -354,7 +354,7 @@ exit 1
Expect(cf.Cf("update-buildpack", buildpackName, "--disable").Wait()).To(Exit(0))
})

Expect(cf.Push(appName, "-b", buildpackName, "-m", DEFAULT_MEMORY_LIMIT, "-p", appPath, "-d", Config.GetAppsDomain()).Wait(Config.CfPushTimeoutDuration())).To(Exit(1))
Expect(cf.Cf("push", appName, "-b", buildpackName, "-m", DEFAULT_MEMORY_LIMIT, "-p", appPath, "-d", Config.GetAppsDomain()).Wait(Config.CfPushTimeoutDuration())).To(Exit(1))
})
})

Expand Down
4 changes: 2 additions & 2 deletions apps/app_bits_copy.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,14 @@ var _ = AppsDescribe("Copy app bits", func() {
golangAppName = random_name.CATSRandomName("APP")
helloWorldAppName = random_name.CATSRandomName("APP")

Expect(cf.Push(golangAppName,
Expect(cf.Cf("push", golangAppName,
"--no-start",
"-b", Config.GetRubyBuildpackName(),
"-m", DEFAULT_MEMORY_LIMIT,
"-p", assets.NewAssets().Golang,
"-d", Config.GetAppsDomain(),
).Wait()).To(Exit(0))
Expect(cf.Push(helloWorldAppName,
Expect(cf.Cf("push", helloWorldAppName,
"--no-start",
"-m", DEFAULT_MEMORY_LIMIT,
"-p", assets.NewAssets().HelloWorld,
Expand Down
2 changes: 1 addition & 1 deletion apps/app_stack.go
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ EOF
expectedLSBRelease = "DISTRIB_CODENAME=bionic"
}

push := cf.Push(appName,
push := cf.Cf("push", appName,
"-b", buildpackName,
"-m", DEFAULT_MEMORY_LIMIT,
"-p", appPath,
Expand Down
2 changes: 1 addition & 1 deletion apps/app_staging_environment.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ EOF
})

It("uses a ruby binary for staging", func() {
push := cf.Push(appName,
push := cf.Cf("push", appName,
"-b", BuildpackName,
"-m", DEFAULT_MEMORY_LIMIT,
"-p", appPath,
Expand Down
2 changes: 1 addition & 1 deletion apps/buildpack_cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ EOF
})

It("uses the buildpack cache after first staging", func() {
Expect(cf.Push(appName,
Expect(cf.Cf("push", appName,
"-b", BuildpackName,
"-m", DEFAULT_MEMORY_LIMIT,
"-p", appPath,
Expand Down
2 changes: 1 addition & 1 deletion apps/changing_start_command.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ var _ = AppsDescribe("Changing an app's start command", func() {
}

BeforeEach(func() {
Expect(cf.Push(appName, "-b", Config.GetNodejsBuildpackName(), "-m", DEFAULT_MEMORY_LIMIT, "-p", assets.NewAssets().NodeWithProcfile, "-d", Config.GetAppsDomain()).Wait(Config.CfPushTimeoutDuration())).To(Exit(0))
Expect(cf.Cf("push", appName, "-b", Config.GetNodejsBuildpackName(), "-m", DEFAULT_MEMORY_LIMIT, "-p", assets.NewAssets().NodeWithProcfile, "-d", Config.GetAppsDomain()).Wait(Config.CfPushTimeoutDuration())).To(Exit(0))
})

It("detects the use of the start command in the 'web' process type", func() {
Expand Down
3 changes: 2 additions & 1 deletion apps/delete_route.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ var _ = AppsDescribe("Delete Route", func() {
nullSession := helpers.CurlSkipSSL(Config.GetSkipSSLValidation(), appUrl).Wait()
expectedNullResponse = string(nullSession.Buffer().Contents())

Expect(cf.Push(appName,
Expect(cf.Cf("push",
appName,
"-b", Config.GetBinaryBuildpackName(),
"-m", DEFAULT_MEMORY_LIMIT,
"-p", assets.NewAssets().Catnip,
Expand Down
4 changes: 2 additions & 2 deletions apps/droplet_uploading_and_downloading.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ var _ = AppsDescribe("Uploading and Downloading droplets", func() {
BeforeEach(func() {
helloWorldAppName = random_name.CATSRandomName("APP")

Expect(cf.Push(helloWorldAppName, "-b", Config.GetRubyBuildpackName(), "-m", DEFAULT_MEMORY_LIMIT, "-p", assets.NewAssets().HelloWorld, "-d", Config.GetAppsDomain()).Wait(Config.CfPushTimeoutDuration())).To(Exit(0))
Expect(cf.Cf("push", helloWorldAppName, "-b", Config.GetRubyBuildpackName(), "-m", DEFAULT_MEMORY_LIMIT, "-p", assets.NewAssets().HelloWorld, "-d", Config.GetAppsDomain()).Wait(Config.CfPushTimeoutDuration())).To(Exit(0))
})

AfterEach(func() {
Expand All @@ -77,7 +77,7 @@ var _ = AppsDescribe("Uploading and Downloading droplets", func() {
unpackTarball(appDropletPathToCompressedFile)

By("Pushing a different version of the app")
Expect(cf.Push(helloWorldAppName, "-p", assets.NewAssets().RubySimple).Wait(Config.CfPushTimeoutDuration())).To(Exit(0))
Expect(cf.Cf("push", helloWorldAppName, "-p", assets.NewAssets().RubySimple).Wait(Config.CfPushTimeoutDuration())).To(Exit(0))
Eventually(func() string {
return helpers.CurlAppRoot(Config, helloWorldAppName)
}).Should(ContainSubstring("Healthy"))
Expand Down
3 changes: 2 additions & 1 deletion apps/encoding.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ var _ = AppsDescribe("Encoding", func() {

BeforeEach(func() {
appName = random_name.CATSRandomName("APP")
Expect(cf.Push(appName,
Expect(cf.Cf("push",
appName,
"--no-start",
"-b", Config.GetJavaBuildpackName(),
"-p", assets.NewAssets().Java,
Expand Down
5 changes: 3 additions & 2 deletions apps/environment_variables_group.go
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ exit 1
Expect(cf.Cf("create-buildpack", buildpackName, buildpackZip, "999").Wait()).To(Exit(0))
})

Expect(cf.Push(appName, "-m", DEFAULT_MEMORY_LIMIT, "-b", buildpackName, "-p", assets.NewAssets().HelloWorld, "-d", Config.GetAppsDomain()).Wait(Config.CfPushTimeoutDuration())).To(Exit(1))
Expect(cf.Cf("push", appName, "-m", DEFAULT_MEMORY_LIMIT, "-b", buildpackName, "-p", assets.NewAssets().HelloWorld, "-d", Config.GetAppsDomain()).Wait(Config.CfPushTimeoutDuration())).To(Exit(1))

Eventually(logs.Tail(Config.GetUseLogCache(), appName)).Should(Say(envVarValue))
})
Expand Down Expand Up @@ -161,7 +161,8 @@ exit 1
extendEnv("running", envVarName, envVarValue)
})

Expect(cf.Push(appName,
Expect(cf.Cf("push",
appName,
"-b", Config.GetBinaryBuildpackName(),
"-m", DEFAULT_MEMORY_LIMIT,
"-p", assets.NewAssets().Catnip,
Expand Down
3 changes: 2 additions & 1 deletion apps/instance_reporting.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@ var _ = AppsDescribe("Getting instance information", func() {
BeforeEach(func() {
appName = random_name.CATSRandomName("APP")

Expect(cf.Push(appName,
Expect(cf.Cf("push",
appName,
"-b", Config.GetBinaryBuildpackName(),
"-m", DEFAULT_MEMORY_LIMIT,
"-p", assets.NewAssets().Catnip,
Expand Down
3 changes: 2 additions & 1 deletion apps/large_payload.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ var _ = AppsDescribe("Large_payload", func() {
})
It("should be able to curl for a large response body", func() {
appName = random_name.CATSRandomName("APP")
Expect(cf.Push(appName,
Expect(cf.Cf("push",
appName,
"-b", Config.GetBinaryBuildpackName(),
"-m", DEFAULT_MEMORY_LIMIT,
"-p", assets.NewAssets().Catnip,
Expand Down
3 changes: 2 additions & 1 deletion apps/loggregator.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ var _ = AppsDescribe("loggregator", func() {
BeforeEach(func() {
appName = CATSRandomName("APP")

Expect(cf.Push(appName,
Expect(cf.Cf("push",
appName,
"-b", Config.GetRubyBuildpackName(),
"-m", DEFAULT_MEMORY_LIMIT,
"-p", assets.NewAssets().LoggregatorLoadGenerator,
Expand Down
3 changes: 2 additions & 1 deletion apps/output_volume.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ var _ = AppsDescribe("An application printing a bunch of output", func() {
BeforeEach(func() {
appName = random_name.CATSRandomName("APP")

Expect(cf.Push(appName,
Expect(cf.Cf("push",
appName,
"-b", Config.GetBinaryBuildpackName(),
"-m", DEFAULT_MEMORY_LIMIT,
"-p", assets.NewAssets().Catnip,
Expand Down
3 changes: 2 additions & 1 deletion apps/routing_transparency.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ var _ = AppsDescribe("Routing Transparency", func() {

BeforeEach(func() {
appName = random_name.CATSRandomName("APP")
Expect(cf.Push(appName,
Expect(cf.Cf("push",
appName,
"-b", Config.GetGoBuildpackName(),
"-p", assets.NewAssets().Golang,
"-f", filepath.Join(assets.NewAssets().Golang, "manifest.yml"),
Expand Down
3 changes: 2 additions & 1 deletion apps/staging_log.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ var _ = AppsDescribe("An application being staged", func() {
})

It("has its staging log streamed during a push", func() {
push := cf.Push(appName,
push := cf.Cf("push",
appName,
"-b", Config.GetBinaryBuildpackName(),
"-m", DEFAULT_MEMORY_LIMIT,
"-p", assets.NewAssets().Catnip,
Expand Down
2 changes: 1 addition & 1 deletion credhub/service_bindings.go
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ EOF
Expect(createBuildpack).Should(Say("OK"))

})
Expect(cf.Push(appName,
Expect(cf.Cf("push", appName,
"--no-start",
"-b", buildpackName,
"-m", DEFAULT_MEMORY_LIMIT,
Expand Down
19 changes: 10 additions & 9 deletions detect/buildpacks.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ var _ = DetectDescribe("Buildpacks", func() {

Describe("ruby", func() {
It("makes the app reachable via its bound route", func() {
Expect(cf.Push(appName,
Expect(cf.Cf("push",
appName,
"-m", DEFAULT_MEMORY_LIMIT,
"-p", assets.NewAssets().HelloWorld,
"-d", Config.GetAppsDomain()).Wait(Config.DetectTimeoutDuration())).To(Exit(0))
Expand All @@ -45,7 +46,7 @@ var _ = DetectDescribe("Buildpacks", func() {

Describe("node", func() {
It("makes the app reachable via its bound route", func() {
Expect(cf.Push(appName, "-m", DEFAULT_MEMORY_LIMIT, "-p", assets.NewAssets().Node, "-d", Config.GetAppsDomain()).Wait(Config.DetectTimeoutDuration())).To(Exit(0))
Expect(cf.Cf("push", appName, "-m", DEFAULT_MEMORY_LIMIT, "-p", assets.NewAssets().Node, "-d", Config.GetAppsDomain()).Wait(Config.DetectTimeoutDuration())).To(Exit(0))

Eventually(func() string {
return helpers.CurlAppRoot(Config, appName)
Expand All @@ -55,7 +56,7 @@ var _ = DetectDescribe("Buildpacks", func() {

Describe("java", func() {
It("makes the app reachable via its bound route", func() {
Expect(cf.Push(appName, "--no-start", "-p", assets.NewAssets().Java, "-m", "1024M", "-d", Config.GetAppsDomain()).Wait()).To(Exit(0))
Expect(cf.Cf("push", appName, "--no-start", "-p", assets.NewAssets().Java, "-m", "1024M", "-d", Config.GetAppsDomain()).Wait()).To(Exit(0))
Expect(cf.Cf("set-env", appName, "JAVA_OPTS", "-Djava.security.egd=file:///dev/urandom").Wait()).To(Exit(0))
Expect(cf.Cf("start", appName).Wait(CF_JAVA_TIMEOUT)).To(Exit(0))

Expand All @@ -67,7 +68,7 @@ var _ = DetectDescribe("Buildpacks", func() {

Describe("golang", func() {
It("makes the app reachable via its bound route", func() {
Expect(cf.Push(appName, "-m", DEFAULT_MEMORY_LIMIT, "-p", assets.NewAssets().Golang, "-f", filepath.Join(assets.NewAssets().Golang, "manifest.yml"), "-d", Config.GetAppsDomain()).Wait(Config.DetectTimeoutDuration())).To(Exit(0))
Expect(cf.Cf("push", appName, "-m", DEFAULT_MEMORY_LIMIT, "-p", assets.NewAssets().Golang, "-f", filepath.Join(assets.NewAssets().Golang, "manifest.yml"), "-d", Config.GetAppsDomain()).Wait(Config.DetectTimeoutDuration())).To(Exit(0))

Eventually(func() string {
return helpers.CurlAppRoot(Config, appName)
Expand All @@ -77,7 +78,7 @@ var _ = DetectDescribe("Buildpacks", func() {

Describe("python", func() {
It("makes the app reachable via its bound route", func() {
Expect(cf.Push(appName, "-m", DEFAULT_MEMORY_LIMIT, "-p", assets.NewAssets().Python, "-d", Config.GetAppsDomain()).Wait(Config.DetectTimeoutDuration())).To(Exit(0))
Expect(cf.Cf("push", appName, "-m", DEFAULT_MEMORY_LIMIT, "-p", assets.NewAssets().Python, "-d", Config.GetAppsDomain()).Wait(Config.DetectTimeoutDuration())).To(Exit(0))

Eventually(func() string {
return helpers.CurlAppRoot(Config, appName)
Expand All @@ -94,7 +95,7 @@ var _ = DetectDescribe("Buildpacks", func() {
})

It("makes the app reachable via its bound route", func() {
Expect(cf.Push(appName, "-m", DEFAULT_MEMORY_LIMIT, "-p", assets.NewAssets().Php, "-d", Config.GetAppsDomain()).Wait(phpPushTimeout)).To(Exit(0))
Expect(cf.Cf("push", appName, "-m", DEFAULT_MEMORY_LIMIT, "-p", assets.NewAssets().Php, "-d", Config.GetAppsDomain()).Wait(phpPushTimeout)).To(Exit(0))

Eventually(func() string {
return helpers.CurlAppRoot(Config, appName)
Expand All @@ -107,7 +108,7 @@ var _ = DetectDescribe("Buildpacks", func() {
// from the dotnet core buildpack until end of the version's LTS in 2019

It("makes the app reachable via its bound route", func() {
Expect(cf.Push(appName, "-m", DEFAULT_MEMORY_LIMIT, "-p", assets.NewAssets().DotnetCore, "-d", Config.GetAppsDomain()).Wait(Config.DetectTimeoutDuration())).To(Exit(0))
Expect(cf.Cf("push", appName, "-m", DEFAULT_MEMORY_LIMIT, "-p", assets.NewAssets().DotnetCore, "-d", Config.GetAppsDomain()).Wait(Config.DetectTimeoutDuration())).To(Exit(0))

Eventually(func() string {
return helpers.CurlAppRoot(Config, appName)
Expand All @@ -117,7 +118,7 @@ var _ = DetectDescribe("Buildpacks", func() {

Describe("staticfile", func() {
It("makes the app reachable via its bound route", func() {
Expect(cf.Push(appName, "-m", DEFAULT_MEMORY_LIMIT, "-p", assets.NewAssets().Staticfile, "-d", Config.GetAppsDomain()).Wait(Config.DetectTimeoutDuration())).To(Exit(0))
Expect(cf.Cf("push", appName, "-m", DEFAULT_MEMORY_LIMIT, "-p", assets.NewAssets().Staticfile, "-d", Config.GetAppsDomain()).Wait(Config.DetectTimeoutDuration())).To(Exit(0))

Eventually(func() string {
return helpers.CurlAppRoot(Config, appName)
Expand All @@ -127,7 +128,7 @@ var _ = DetectDescribe("Buildpacks", func() {

Describe("binary", func() {
It("makes the app reachable via its bound route", func() {
Expect(cf.Push(appName, "-b", Config.GetBinaryBuildpackName(), "-m", DEFAULT_MEMORY_LIMIT, "-p", assets.NewAssets().Binary, "-d", Config.GetAppsDomain()).Wait(Config.DetectTimeoutDuration())).To(Exit(0))
Expect(cf.Cf("push", appName, "-b", Config.GetBinaryBuildpackName(), "-m", DEFAULT_MEMORY_LIMIT, "-p", assets.NewAssets().Binary, "-d", Config.GetAppsDomain()).Wait(Config.DetectTimeoutDuration())).To(Exit(0))

Eventually(func() string {
return helpers.CurlAppRoot(Config, appName)
Expand Down
2 changes: 1 addition & 1 deletion docker/credhub_enabled.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ var _ = DockerDescribe("Docker App Lifecycle CredHub Integration", func() {

chBrokerName = random_name.CATSRandomName("BRKR-CH")

pushBroker := cf.Push(chBrokerName, "-b", Config.GetGoBuildpackName(), "-m", DEFAULT_MEMORY_LIMIT, "-p", assets.NewAssets().CredHubServiceBroker, "-f", assets.NewAssets().CredHubServiceBroker+"/manifest.yml", "-d", Config.GetAppsDomain()).Wait(Config.CfPushTimeoutDuration())
pushBroker := cf.Cf("push", chBrokerName, "-b", Config.GetGoBuildpackName(), "-m", DEFAULT_MEMORY_LIMIT, "-p", assets.NewAssets().CredHubServiceBroker, "-f", assets.NewAssets().CredHubServiceBroker+"/manifest.yml", "-d", Config.GetAppsDomain()).Wait(Config.CfPushTimeoutDuration())
Expect(pushBroker).To(Exit(0), "failed pushing credhub-enabled service broker")

existingEnvVar := string(cf.Cf("running-environment-variable-group").Wait().Out.Contents())
Expand Down
3 changes: 2 additions & 1 deletion internet_dependent/app_dns_resolution.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ type CatnipCurlResponse struct {
}

func pushApp(appName, buildpack string) {
Expect(cf.Push(appName,
Expect(cf.Cf("push",
appName,
"-b", buildpack,
"-m", DEFAULT_MEMORY_LIMIT,
"-p", assets.NewAssets().Catnip,
Expand Down
2 changes: 1 addition & 1 deletion internet_dependent/git_buildpack.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ var _ = InternetDependentDescribe("GitBuildpack", func() {

It("uses a buildpack from a git url", func() {
appName = random_name.CATSRandomName("APP")
Expect(cf.Push(appName, "-m", DEFAULT_MEMORY_LIMIT, "-p", assets.NewAssets().Node, "-b", "https://github.com/cloudfoundry/nodejs-buildpack.git#v1.3.1", "-d", Config.GetAppsDomain()).Wait(Config.CfPushTimeoutDuration())).To(Exit(0))
Expect(cf.Cf("push", appName, "-m", DEFAULT_MEMORY_LIMIT, "-p", assets.NewAssets().Node, "-b", "https://github.com/cloudfoundry/nodejs-buildpack.git#v1.3.1", "-d", Config.GetAppsDomain()).Wait(Config.CfPushTimeoutDuration())).To(Exit(0))

Eventually(func() string {
return helpers.CurlAppRoot(Config, appName)
Expand Down
3 changes: 2 additions & 1 deletion internetless/app_external_traffic_denied.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ type CatnipCurlResponse struct {
}

func pushApp(appName, buildpack string) {
Expect(cf.Push(appName,
Expect(cf.Cf("push",
appName,
"-b", buildpack,
"-m", DEFAULT_MEMORY_LIMIT,
"-p", assets.NewAssets().Catnip,
Expand Down
9 changes: 6 additions & 3 deletions route_services/route_services.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ var _ = RouteServicesDescribe("Route Services", func() {
createServiceBroker(brokerName, brokerAppName, serviceName)
createServiceInstance(serviceInstanceName, serviceName)

Expect(cf.Push(appName,
Expect(cf.Cf("push",
appName,
"-b", Config.GetGoBuildpackName(),
"-m", DEFAULT_MEMORY_LIMIT,
"-p", golangAsset,
Expand Down Expand Up @@ -109,7 +110,8 @@ var _ = RouteServicesDescribe("Route Services", func() {
createServiceBroker(brokerName, brokerAppName, serviceName)
createServiceInstance(serviceInstanceName, serviceName)

Expect(cf.Push(appName,
Expect(cf.Cf("push",
appName,
"-b", Config.GetGoBuildpackName(),
"-m", DEFAULT_MEMORY_LIMIT,
"-p", golangAsset,
Expand Down Expand Up @@ -255,7 +257,8 @@ func configureBroker(serviceBrokerAppName, routeServiceName string) {

func createServiceBroker(brokerName, brokerAppName, serviceName string) {
serviceBrokerAsset := assets.NewAssets().ServiceBroker
Expect(cf.Push(brokerAppName,
Expect(cf.Cf("push",
brokerAppName,
"-b", Config.GetRubyBuildpackName(),
"-m", DEFAULT_MEMORY_LIMIT,
"-p", serviceBrokerAsset,
Expand Down
Loading

0 comments on commit 5cba29d

Please sign in to comment.