. "github.com/onsi/gomega/gexec" "github.com/cloudfoundry-incubator/cf-test-helpers/cf" "github.com/cloudfoundry-incubator/cf-test-helpers/helpers" "github.com/cloudfoundry-incubator/cf-test-helpers/workflowhelpers" "github.com/cloudfoundry/cf-acceptance-tests/helpers/app_helpers" "github.com/cloudfoundry/cf-acceptance-tests/helpers/assets" ) var _ = AppsDescribe("An application that's already been pushed", func() { var appName string var persistentTestSetup *workflowhelpers.ReproducibleTestSuiteSetup BeforeEach(func() { persistentTestSetup = workflowhelpers.NewPersistentAppTestSuiteSetup(Config) persistentTestSetup.Setup() }) AfterEach(func() { app_helpers.AppReport(appName, Config.DefaultTimeoutDuration()) persistentTestSetup.Teardown() }) BeforeEach(func() { appName = Config.GetPersistentAppHost() appQuery := cf.Cf("app", appName).Wait(Config.DefaultTimeoutDuration()) // might exit with 1 or 0, depending on app status output := string(appQuery.Out.Contents())
"github.com/cloudfoundry/cf-acceptance-tests/helpers/assets" "github.com/cloudfoundry/cf-acceptance-tests/helpers/random_name" . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" . "github.com/onsi/gomega/gbytes" . "github.com/onsi/gomega/gexec" ) var _ = AppsDescribe("Getting instance information", func() { Describe("scaling memory", func() { var appName string var runawayTestSetup *workflowhelpers.ReproducibleTestSuiteSetup BeforeEach(func() { runawayTestSetup = workflowhelpers.NewRunawayAppTestSuiteSetup(Config) runawayTestSetup.Setup() appName = random_name.CATSRandomName("APP") Eventually(cf.Cf( "push", appName, "-p", assets.NewAssets().Binary, "--no-start", "-b", "binary_buildpack", "-m", DEFAULT_MEMORY_LIMIT, "-d", Config.GetAppsDomain(), "-c", "./app"), Config.CfPushTimeoutDuration()).Should(Exit(0)) app_helpers.SetBackend(appName) Eventually(cf.Cf("start", appName), Config.CfPushTimeoutDuration()).Should(Exit(0))