Expect(otherJson).To(Equal(&opaqueRoutingMessage)) } It("updates the LRP without stepping on opaque routing data", func() { expected := cfroutes.CFRoutes{ {Hostnames: []string{"route1", "route2"}, Port: 8080}, } opaqueRoutingDataCheck(expected) }) It("responds with 202 Accepted", func() { Expect(responseRecorder.Code).To(Equal(http.StatusAccepted)) }) It("uses buildpack builder", func() { Expect(dockerBuilder.ExtractExposedPortsCallCount()).To(Equal(0)) Expect(buildpackBuilder.ExtractExposedPortsCallCount()).To(Equal(1)) Expect(buildpackBuilder.ExtractExposedPortsArgsForCall(0)).To(Equal(&desireAppRequest)) }) Context("when multiple routes with same route service are sent", func() { var routesToEmit cfroutes.CFRoutes BeforeEach(func() { routingInfo, err := cc_messages.CCHTTPRoutes{ {Hostname: "route1", RouteServiceUrl: "https://rs.example.com"}, {Hostname: "route2", RouteServiceUrl: "https://rs.example.com"}, {Hostname: "route3"}, }.CCRouteInfo() Expect(err).NotTo(HaveOccurred())