CellId: "cell-2", RepAddress: "2.2.2.2", Zone: "z2", Capacity: &models.CellCapacity{ MemoryMb: 2000, DiskMb: 2000, Containers: 20, }, RootfsProviders: []*models.Provider{ &models.Provider{"preloaded", []string{"provider-1"}}, }, PlacementTags: []string{"test3", "test4"}, }, } cellSet = models.NewCellSet() cellSet.Add(cells[0]) cellSet.Add(cells[1]) }) Describe("Cells", func() { JustBeforeEach(func() { handler.Cells(logger, responseRecorder, newTestRequest("")) }) Context("when reading cells succeeds", func() { BeforeEach(func() { fakeServiceClient.CellsReturns(cellSet, nil) }) It("returns a list of cells", func() { Expect(responseRecorder.Code).To(Equal(http.StatusOK))