. "github.com/cloudfoundry/cf-acceptance-tests/helpers" "github.com/cloudfoundry/cf-acceptance-tests/services/helpers" . "github.com/pivotal-cf-experimental/cf-test-helpers/cf" "github.com/pivotal-cf-experimental/cf-test-helpers/generator" ) var _ = Describe("Purging service offerings", func() { var broker helpers.ServiceBroker BeforeEach(func() { helpers.LoginAsAdmin() broker = helpers.NewServiceBroker(generator.RandomName(), NewAssets().ServiceBroker) broker.Push() broker.Configure() broker.Create(LoadConfig().AppsDomain) broker.PublicizePlans() }) AfterEach(func() { broker.Destroy() helpers.LoginAsUser() }) It("removes all instances and plans of the service, then removes the service offering", func() { defer helpers.Recover() // Catches panic thrown by Require expectations instanceName := "purge-offering-instance" Expect(Cf("marketplace")).To(Say(broker.Plan.Name)) // TODO: CreateServiceInstance is used as a workaround for the problem in cf 6.0.1 that prevents us from