var details brokerapi.UnbindDetails BeforeEach(func() { details = brokerapi.UnbindDetails{ PlanID: "plan-id", ServiceID: "service-id", } }) It("one broker recognizes service instance", func() { subway.BackendBrokers = []*broker.BackendBroker{ {URI: "TEST-UNKNOWN-INSTANCE"}, {URI: "TEST-FOUND-INSTANCE"}, {URI: "TEST-UNKNOWN-INSTANCE"}, } err := subway.Unbind("service-id", "bind-id", details) Ω(err).ToNot(HaveOccurred()) }) It("no broker recognizes service instance", func() { subway.BackendBrokers = []*broker.BackendBroker{ {URI: "TEST-UNKNOWN-INSTANCE"}, {URI: "TEST-UNKNOWN-INSTANCE"}, } err := subway.Unbind("service-id", "bind-id", details) Ω(err).To(HaveOccurred()) }) }) Describe(".Deprovision", func() {
{URI: "TEST-UNKNOWN-INSTANCE"}, } _, err := subway.Bind("service-id", "bind-id", brokerapi.BindDetails{PlanID: "plan-uuid"}) Ω(err).To(HaveOccurred()) }) }) Describe(".Unind", func() { It("one broker recognizes service instance", func() { subway.BackendBrokers = []*broker.BackendBroker{ {URI: "TEST-UNKNOWN-INSTANCE"}, {URI: "TEST-FOUND-INSTANCE"}, {URI: "TEST-UNKNOWN-INSTANCE"}, } err := subway.Unbind("service-id", "bind-id") Ω(err).ToNot(HaveOccurred()) }) It("no broker recognizes service instance", func() { subway.BackendBrokers = []*broker.BackendBroker{ {URI: "TEST-UNKNOWN-INSTANCE"}, {URI: "TEST-UNKNOWN-INSTANCE"}, } err := subway.Unbind("service-id", "bind-id") Ω(err).To(HaveOccurred()) }) }) Describe(".Deprovision", func() {