diff --git a/brokerapi/broker/provision_test.go b/brokerapi/broker/provision_test.go index 74678ae1b..3f06b9d11 100644 --- a/brokerapi/broker/provision_test.go +++ b/brokerapi/broker/provision_test.go @@ -50,7 +50,7 @@ var _ = Describe("Provision", func() { OperationGUID: operationID, }, nil) - providerBuilder := func(logger lager.Logger, fakeStorageProvider pkgBroker.ServiceProviderStorage) pkgBroker.ServiceProvider { + providerBuilder := func(logger lager.Logger, store pkgBroker.ServiceProviderStorage) pkgBroker.ServiceProvider { return fakeServiceProvider } brokerConfig := &broker.BrokerConfig{ diff --git a/integrationtest/golden_path_test.go b/integrationtest/golden_path_test.go deleted file mode 100644 index dac5518a6..000000000 --- a/integrationtest/golden_path_test.go +++ /dev/null @@ -1,51 +0,0 @@ -package integrationtest_test - -import ( - "encoding/json" - - "github.com/cloudfoundry/cloud-service-broker/v2/integrationtest/packer" - "github.com/cloudfoundry/cloud-service-broker/v2/internal/testdrive" - - . "github.com/onsi/ginkgo/v2" - . "github.com/onsi/gomega" -) - -var _ = Describe("Golden Path", func() { - const ( - serviceOfferingGUID = "f18d50e2-cbf0-11ee-a64b-f7a425623295" - servicePlanGUID = "fd01df6a-cbf0-11ee-ac5b-fba53664a953" - ) - - var ( - brokerpak string - broker *testdrive.Broker - ) - - BeforeEach(func() { - brokerpak = must(packer.BuildBrokerpak(csb, fixtures("golden-path"))) - broker = must(testdrive.StartBroker(csb, brokerpak, database)) - - DeferCleanup(func() { - Expect(broker.Stop()).To(Succeed()) - cleanup(brokerpak) - }) - }) - - It("can create and delete a service instance and a binding", func() { - instance := must(broker.Provision(serviceOfferingGUID, servicePlanGUID)) - - binding := must(broker.CreateBinding(instance)) - var receiver struct { - Credentials struct { - BindOutput string `json:"bind_output"` - ProvisionOutput string `json:"provision_output"` - } `json:"credentials"` - } - Expect(json.Unmarshal([]byte(binding.Body), &receiver)).To(Succeed()) - Expect(receiver.Credentials.ProvisionOutput).To(MatchRegexp(`^[-0-9a-f]{36}$`)) - Expect(receiver.Credentials.BindOutput).To(MatchRegexp(`^[-0-9a-f]{36}$`)) - - Expect(broker.DeleteBinding(instance, binding.GUID)).To(Succeed()) - Expect(broker.Deprovision(instance)).To(Succeed()) - }) -})