"net/http" "net/http/httptest" "github.com/cloudfoundry-incubator/bbs/db/fakes" "github.com/cloudfoundry-incubator/bbs/handlers" "github.com/cloudfoundry-incubator/bbs/models" . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" "github.com/pivotal-golang/lager" ) var _ = Describe("ActualLRP Lifecycle Handlers", func() { var ( logger lager.Logger fakeActualLRPDB *fakes.FakeActualLRPDB responseRecorder *httptest.ResponseRecorder handler *handlers.ActualLRPLifecycleHandler actualLRP models.ActualLRP ) BeforeEach(func() { fakeActualLRPDB = new(fakes.FakeActualLRPDB) logger = lager.NewLogger("test") logger.RegisterSink(lager.NewWriterSink(GinkgoWriter, lager.DEBUG)) responseRecorder = httptest.NewRecorder() handler = handlers.NewActualLRPLifecycleHandler(logger, fakeActualLRPDB) }) Describe("ClaimActualLRP", func() { var ( processGuid = "process-guid"
"strconv" "github.com/cloudfoundry-incubator/bbs/db/fakes" "github.com/cloudfoundry-incubator/bbs/handlers" "github.com/cloudfoundry-incubator/bbs/models" . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" "github.com/pivotal-golang/lager" ) var _ = Describe("ActualLRP Handlers", func() { var ( logger lager.Logger fakeActualLRPDB *fakes.FakeActualLRPDB responseRecorder *httptest.ResponseRecorder handler *handlers.ActualLRPHandler actualLRP1 models.ActualLRP actualLRP2 models.ActualLRP evacuatingLRP2 models.ActualLRP ) BeforeEach(func() { fakeActualLRPDB = new(fakes.FakeActualLRPDB) logger = lager.NewLogger("test") logger.RegisterSink(lager.NewWriterSink(GinkgoWriter, lager.DEBUG)) responseRecorder = httptest.NewRecorder() handler = handlers.NewActualLRPHandler(logger, fakeActualLRPDB) }) Describe("ActualLRPGroups", func() { var request *http.Request
"net/url" "strconv" "github.com/cloudfoundry-incubator/bbs/db/fakes" "github.com/cloudfoundry-incubator/bbs/handlers" "github.com/cloudfoundry-incubator/bbs/models" . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" "github.com/pivotal-golang/lager" ) var _ = Describe("ActualLRP Lifecycle Handlers", func() { var ( logger lager.Logger fakeActualLRPDB *fakes.FakeActualLRPDB responseRecorder *httptest.ResponseRecorder handler *handlers.ActualLRPLifecycleHandler actualLRP models.ActualLRP ) BeforeEach(func() { fakeActualLRPDB = new(fakes.FakeActualLRPDB) logger = lager.NewLogger("test") logger.RegisterSink(lager.NewWriterSink(GinkgoWriter, lager.DEBUG)) responseRecorder = httptest.NewRecorder() handler = handlers.NewActualLRPLifecycleHandler(logger, fakeActualLRPDB) }) Describe("ClaimActualLRP", func() { var ( request *http.Request