From bd67d810e8d18f467bd02c6f9df1f89b3644e248 Mon Sep 17 00:00:00 2001 From: Marcin Grzejszczak Date: Mon, 4 Jun 2018 14:17:14 +0200 Subject: [PATCH] Fixed tests: --- .../src/test/groovy/e2e/E2eSpec.groovy | 2 +- .../src/test/groovy/smoke/SmokeSpec.groovy | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/shortages-prediction-adapters/src/test/groovy/e2e/E2eSpec.groovy b/shortages-prediction-adapters/src/test/groovy/e2e/E2eSpec.groovy index 0169a57..d9f9357 100644 --- a/shortages-prediction-adapters/src/test/groovy/e2e/E2eSpec.groovy +++ b/shortages-prediction-adapters/src/test/groovy/e2e/E2eSpec.groovy @@ -33,7 +33,7 @@ class E2eSpec extends Specification { expect: Awaitility.await().atMost(this.timeout, TimeUnit.SECONDS).untilAsserted({ ResponseEntity entity = this.testRestTemplate - .getForEntity("http://" + this.applicationUrl + "/health", String.class); + .getForEntity("http://" + this.applicationUrl + "/shortages", String.class); then(entity.getStatusCode().is2xxSuccessful()).isTrue(); }) diff --git a/shortages-prediction-adapters/src/test/groovy/smoke/SmokeSpec.groovy b/shortages-prediction-adapters/src/test/groovy/smoke/SmokeSpec.groovy index f32699a..55dcce7 100644 --- a/shortages-prediction-adapters/src/test/groovy/smoke/SmokeSpec.groovy +++ b/shortages-prediction-adapters/src/test/groovy/smoke/SmokeSpec.groovy @@ -34,7 +34,7 @@ class SmokeSpec extends Specification { expect: Awaitility.await().atMost(this.timeout, TimeUnit.SECONDS).untilAsserted({ ResponseEntity entity = this.testRestTemplate - .getForEntity("http://" + this.applicationUrl + "/health", String.class); + .getForEntity("http://" + this.applicationUrl + "/shortages", String.class); then(entity.getStatusCode().is2xxSuccessful()).isTrue(); })