This is an automated email from the ASF dual-hosted git repository. lburgazzoli pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/camel-quarkus.git
The following commit(s) were added to refs/heads/master by this push: new fcd238d Switch from restcountries.eu to estcountries.com as the .eu service is not reliable anymorei #1538 fcd238d is described below commit fcd238dcc4a080a27719b5d4d132f4c5815026df Author: lburgazzoli <lburgazz...@gmail.com> AuthorDate: Tue Aug 18 15:49:17 2020 +0200 Switch from restcountries.eu to estcountries.com as the .eu service is not reliable anymorei #1538 --- .../org/apache/camel/quarkus/component/http/it/HttpResource.java | 6 +++--- .../java/org/apache/camel/quarkus/component/http/it/HttpTest.java | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/integration-tests/http/src/main/java/org/apache/camel/quarkus/component/http/it/HttpResource.java b/integration-tests/http/src/main/java/org/apache/camel/quarkus/component/http/it/HttpResource.java index 181930b..dcb7616 100644 --- a/integration-tests/http/src/main/java/org/apache/camel/quarkus/component/http/it/HttpResource.java +++ b/integration-tests/http/src/main/java/org/apache/camel/quarkus/component/http/it/HttpResource.java @@ -60,7 +60,7 @@ public class HttpResource { @Produces(MediaType.TEXT_PLAIN) public String getHttps() { return producerTemplate - .to("ahc:https://restcountries.eu/rest/v2/alpha/cz?bridgeEndpoint=true") + .to("ahc:https://restcountries.com/v2/alpha/cz?bridgeEndpoint=true") .withHeader(Exchange.HTTP_METHOD, "GET") .request(String.class); } @@ -117,7 +117,7 @@ public class HttpResource { @Produces(MediaType.TEXT_PLAIN) public String httpGetHttps() { return producerTemplate - .to("https://restcountries.eu/rest/v2/alpha/cz?bridgeEndpoint=true") + .to("https://restcountries.com/v2/alpha/cz?bridgeEndpoint=true") .withHeader(Exchange.HTTP_METHOD, "GET") .request(String.class); } @@ -156,7 +156,7 @@ public class HttpResource { @Produces(MediaType.TEXT_PLAIN) public String nettyHttpGetHttps() { return producerTemplate - .to("netty-http:https://restcountries.eu/rest/v2/alpha/cz?ssl=true&passphrase=changeit&keyStoreResource=classpath:jsse/keystore.p12&trustStoreResource=file:{{javax.net.ssl.trustStore}}") + .to("netty-http:https://restcountries.com/v2/alpha/cz?ssl=true&passphrase=changeit&keyStoreResource=classpath:jsse/keystore.p12&trustStoreResource=file:{{javax.net.ssl.trustStore}}") .withHeader(Exchange.HTTP_METHOD, "GET") .request(String.class); } diff --git a/integration-tests/http/src/test/java/org/apache/camel/quarkus/component/http/it/HttpTest.java b/integration-tests/http/src/test/java/org/apache/camel/quarkus/component/http/it/HttpTest.java index a1f7d48..a730a72 100644 --- a/integration-tests/http/src/test/java/org/apache/camel/quarkus/component/http/it/HttpTest.java +++ b/integration-tests/http/src/test/java/org/apache/camel/quarkus/component/http/it/HttpTest.java @@ -68,11 +68,11 @@ class HttpTest { public void restcountries() throws Exception { RestAssured .given() - .baseUri("https://restcountries.eu") + .baseUri("https://restcountries.com") .port(443) .when() .accept("application/json") - .get("/rest/v2/alpha/cz") + .get("/v2/alpha/cz") .then() .statusCode(200) .body(containsString("Czech Republic"));