var _ = Describe("Domain Handlers", func() {
	var (
		logger           lager.Logger
		fakeLegacyBBS    *fake_legacy_bbs.FakeReceptorBBS
		fakeBBS          *fake_bbs.FakeClient
		responseRecorder *httptest.ResponseRecorder
		handler          *handlers.DomainHandler
	)

	BeforeEach(func() {
		fakeLegacyBBS = new(fake_legacy_bbs.FakeReceptorBBS)
		fakeBBS = new(fake_bbs.FakeClient)
		logger = lager.NewLogger("test")
		logger.RegisterSink(lager.NewWriterSink(GinkgoWriter, lager.DEBUG))
		responseRecorder = httptest.NewRecorder()
		handler = handlers.NewDomainHandler(fakeBBS, fakeLegacyBBS, logger)
	})

	Describe("Upsert", func() {
		var domain string
		var ttl time.Duration

		BeforeEach(func() {
			domain = "domain-1"
			ttl = 1000 * time.Second
		})

		Context("with a structured request", func() {
			var req *http.Request

			BeforeEach(func() {
)

var _ = Describe("Domain Handlers", func() {
	var (
		logger           lager.Logger
		fakeBBS          *fake_bbs.FakeReceptorBBS
		responseRecorder *httptest.ResponseRecorder
		handler          *handlers.DomainHandler
	)

	BeforeEach(func() {
		fakeBBS = new(fake_bbs.FakeReceptorBBS)
		logger = lager.NewLogger("test")
		logger.RegisterSink(lager.NewWriterSink(GinkgoWriter, lager.DEBUG))
		responseRecorder = httptest.NewRecorder()
		handler = handlers.NewDomainHandler(fakeBBS, logger)
	})

	Describe("Upsert", func() {
		var domain string
		var ttlInSeconds int

		BeforeEach(func() {
			domain = "domain-1"
			ttlInSeconds = 1000
		})

		Context("with a structured request", func() {
			var req *http.Request

			BeforeEach(func() {