diff --git a/api/endpoints.js b/api/endpoints.js index 539298720..89100c48f 100644 --- a/api/endpoints.js +++ b/api/endpoints.js @@ -17,7 +17,7 @@ module.exports = { catalogueUrl: util.format("http://catalogue%s", domain), tagsUrl: util.format("http://catalogue%s/tags", domain), - cartsUrl: util.format("http://cart%s/carts", domain), + cartsUrl: util.format("http://carts%s/carts", domain), ordersUrl: util.format("http://orders%s", domain), customersUrl: util.format("http://user%s/customers", domain), addressUrl: util.format("http://user%s/addresses", domain), diff --git a/test/api/endpoints_test.js b/test/api/endpoints_test.js index 97b9d8a3a..986bd1c61 100644 --- a/test/api/endpoints_test.js +++ b/test/api/endpoints_test.js @@ -19,7 +19,7 @@ describe("cartsUrl", function() { it("points to the proper endpoint", function() { - expect(endpoints.cartsUrl).to.equal("http://cart/carts"); + expect(endpoints.cartsUrl).to.equal("http://carts/carts"); }); }); diff --git a/test/docker-compose.yml b/test/docker-compose.yml index 49b9706e4..1fa54a0bc 100644 --- a/test/docker-compose.yml +++ b/test/docker-compose.yml @@ -15,9 +15,9 @@ services: restart: always environment: - reschedule:on-node-failure - cart: - image: weaveworksdemos/cart - hostname: cart + carts: + image: weaveworksdemos/carts + hostname: carts restart: always environment: - reschedule:on-node-failure