You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ja...@apache.org on 2020/11/27 15:29:18 UTC

[camel-quarkus] branch master updated: Fix GeocoderNominationTest postalCode field assertion failure

This is an automated email from the ASF dual-hosted git repository.

jamesnetherton 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 7ac309a  Fix GeocoderNominationTest postalCode field assertion failure
7ac309a is described below

commit 7ac309a840e89a77c1bef099d267d98a6aea0667
Author: James Netherton <ja...@gmail.com>
AuthorDate: Fri Nov 27 13:54:13 2020 +0000

    Fix GeocoderNominationTest postalCode field assertion failure
---
 .../component/geocoder/it/GeocoderNominationTest.java       | 13 +++++++++----
 1 file changed, 9 insertions(+), 4 deletions(-)

diff --git a/integration-tests/geocoder/src/test/java/org/apache/camel/quarkus/component/geocoder/it/GeocoderNominationTest.java b/integration-tests/geocoder/src/test/java/org/apache/camel/quarkus/component/geocoder/it/GeocoderNominationTest.java
index abab467..61b75f6 100644
--- a/integration-tests/geocoder/src/test/java/org/apache/camel/quarkus/component/geocoder/it/GeocoderNominationTest.java
+++ b/integration-tests/geocoder/src/test/java/org/apache/camel/quarkus/component/geocoder/it/GeocoderNominationTest.java
@@ -20,7 +20,6 @@ import io.quarkus.test.common.QuarkusTestResource;
 import io.quarkus.test.common.http.TestHTTPEndpoint;
 import io.quarkus.test.junit.QuarkusTest;
 import io.restassured.RestAssured;
-import org.junit.jupiter.api.Disabled;
 import org.junit.jupiter.api.Test;
 
 import static org.hamcrest.Matchers.equalTo;
@@ -28,17 +27,23 @@ import static org.hamcrest.Matchers.equalTo;
 @QuarkusTest
 @TestHTTPEndpoint(GeocoderNominationResource.class)
 @QuarkusTestResource(GeocoderTestResource.class)
-@Disabled("https://github.com/apache/camel-quarkus/issues/2033")
 public class GeocoderNominationTest {
 
+    /**
+     * Note: The geocoder:nominatim endpoints call out to an API that is currently not covered by WireMock.
+     *
+     * https://issues.apache.org/jira/browse/CAMEL-15900
+     * https://github.com/apache/camel-quarkus/issues/2033
+     */
+
     @Test
     public void loadAddress() {
         RestAssured.get("/address/calle marie curie, sevilla, sevilla")
                 .then()
                 .statusCode(200)
                 .body("status", equalTo("OK"))
-                .body("postalCode", equalTo("41092"))
-                .body("city", equalTo("Sevilla"))
+                .body("postalCode", equalTo("41940"))
+                .body("region.name", equalTo("AndalucĂ­a"))
                 .body("country.shortCode", equalTo("ES"));
     }