func TestLats(t *testing.T) { RegisterFailHandler(Fail) var environment *helpers.Environment BeforeSuite(func() { config = helpers.LoadConfig() context := helpers.NewContext(config) environment = helpers.NewEnvironment(context) environment.Setup() }) AfterSuite(func() { environment.Teardown() }) RunSpecs(t, "Lats Suite") }
"github.com/cloudfoundry-incubator/cf-test-helpers/cf" "github.com/cloudfoundry-incubator/cf-test-helpers/helpers" "github.com/cloudfoundry/cf-acceptance-tests/helpers/app_helpers" "github.com/cloudfoundry/cf-acceptance-tests/helpers/assets" ) var _ = Describe("An application that's already been pushed", func() { var appName string config := helpers.LoadConfig() var environment *helpers.Environment BeforeEach(func() { persistentContext := helpers.NewPersistentAppContext(config) environment = helpers.NewEnvironment(persistentContext) environment.Setup() }) AfterEach(func() { app_helpers.AppReport(appName, DEFAULT_TIMEOUT) environment.Teardown() }) BeforeEach(func() { appName = config.PersistentAppHost appQuery := cf.Cf("app", appName).Wait(DEFAULT_TIMEOUT) // might exit with 1 or 0, depending on app status output := string(appQuery.Out.Contents())