You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by GitBox <gi...@apache.org> on 2020/11/26 07:25:16 UTC

[GitHub] [camel-quarkus] jamesnetherton opened a new issue #2033: GeocoderNominationTest postalCode field assertion failure

jamesnetherton opened a new issue #2033:
URL: https://github.com/apache/camel-quarkus/issues/2033


   This test has started failing. Not sure what's going on here as it should be using stubbed responses from WireMock.
   
   I'm going to disable the test temporarily until I figure out what's wrong. 
   
   ```
   org.apache.camel.quarkus.component.geocoder.it.GeocoderNominationTest
   [ERROR] loadAddress  Time elapsed: 2.354 s  <<< FAILURE!
   java.lang.AssertionError: 
   1 expectation failed.
   JSON path postalCode doesn't match.
   Expected: 41092
     Actual: 41940
   ```


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [camel-quarkus] jamesnetherton commented on issue #2033: GeocoderNominationTest postalCode field assertion failure

Posted by GitBox <gi...@apache.org>.
jamesnetherton commented on issue #2033:
URL: https://github.com/apache/camel-quarkus/issues/2033#issuecomment-734847447


   Seems these tests invoke an API that can't be covered by WireMock because there's no way of configuring the underlying HTTP client to point at the WireMock server. See:
   
   https://issues.apache.org/jira/browse/CAMEL-15900
   
   For now, I'll fix, enable the tests and follow up with mocking at a later time.
   
    


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [camel-quarkus] ppalaga commented on issue #2033: Stub nominatim.openstreetmap.org APIs with WireMock for GeocoderNominationTest

Posted by GitBox <gi...@apache.org>.
ppalaga commented on issue #2033:
URL: https://github.com/apache/camel-quarkus/issues/2033#issuecomment-952038760


   Is this fully fixed by https://github.com/apache/camel-quarkus/pull/3235 ?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [camel-quarkus] ppalaga commented on issue #2033: Stub nominatim.openstreetmap.org APIs with WireMock for GeocoderNominationTest

Posted by GitBox <gi...@apache.org>.
ppalaga commented on issue #2033:
URL: https://github.com/apache/camel-quarkus/issues/2033#issuecomment-951337785


   There is still no way in Camel to replace the base URI, is there? https://issues.apache.org/jira/browse/CAMEL-15900


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [camel-quarkus] ppalaga commented on issue #2033: Stub nominatim.openstreetmap.org APIs with WireMock for GeocoderNominationTest

Posted by GitBox <gi...@apache.org>.
ppalaga commented on issue #2033:
URL: https://github.com/apache/camel-quarkus/issues/2033#issuecomment-951045491


   I have recently seen some random failures in the test like this one:
   
   ```
   [INFO] Running org.apache.camel.quarkus.component.geocoder.it.GeocoderNominationTest
   2021-10-25 10:58:50,961 INFO  [org.apa.cam.qua.tes.wir.WireMockTestResourceLifecycleManager] (pool-3-thread-1) Starting WireMockServer
   2021-10-25 10:58:51,017 INFO  [org.apa.cam.qua.tes.moc.bac.MockBackendUtils] (pool-3-thread-1) Mock backend will be used
   2021-10-25 10:58:51,477 INFO  [org.ecl.jet.uti.log] (pool-3-thread-1) Logging initialized @8836ms to org.eclipse.jetty.util.log.Slf4jLog
   2021-10-25 10:58:51,585 INFO  [org.ecl.jet.ser.Server] (pool-3-thread-1) jetty-9.4.42.v20210604; built: 2021-06-04T17:33:38.939Z; git: 5cd5e6d2375eeab146813b0de9f19eda6ab6e6cb; jvm 11.0.12+7-LTS
   2021-10-25 10:58:51,637 INFO  [org.ecl.jet.ser.han.ContextHandler] (pool-3-thread-1) Started o.e.j.s.ServletContextHandler@11a6a300{/__admin,null,AVAILABLE}
   2021-10-25 10:58:51,638 INFO  [org.ecl.jet.ser.han.ContextHandler] (pool-3-thread-1) Started o.e.j.s.ServletContextHandler@583d94da{/,null,AVAILABLE}
   2021-10-25 10:58:51,652 INFO  [org.ecl.jet.ser.AbstractConnector] (pool-3-thread-1) Started NetworkTrafficServerConnector@49cac845{HTTP/1.1, (http/1.1)}{0.0.0.0:37615}
   2021-10-25 10:58:51,653 INFO  [org.ecl.jet.ser.Server] (pool-3-thread-1) Started @9011ms
   2021-10-25 10:58:51,653 INFO  [org.apa.cam.qua.tes.wir.WireMockTestResourceLifecycleManager] (pool-3-thread-1) WireMock started on http://localhost:37615
   2021-10-25 10:58:51,713 WARN  [io.qua.config] (main) Unrecognized configuration key "quarkus.https.test-port" was provided; it will be ignored; verify that the dependency extension for this configuration is set or that you did not make a typo
   2021-10-25 10:58:52,344 INFO  [org.apa.cam.qua.cor.CamelBootstrapRecorder] (main) Bootstrap runtime: org.apache.camel.quarkus.main.CamelMainRuntime
   2021-10-25 10:58:52,416 INFO  [org.apa.cam.imp.eng.AbstractCamelContext] (main) Routes startup summary (total:0 started:0)
   2021-10-25 10:58:52,416 INFO  [org.apa.cam.imp.eng.AbstractCamelContext] (main) Apache Camel 3.11.1.fuse-800018-redhat-00001 (camel-1) started in 32ms (build:0ms init:30ms start:2ms)
   2021-10-25 10:58:52,609 INFO  [io.quarkus] (main) Quarkus 2.2.3.Final-redhat-00013 on JVM started in 4.029s. Listening on: http://localhost:46760
   2021-10-25 10:58:52,610 INFO  [io.quarkus] (main) Profile test activated. 
   2021-10-25 10:58:52,610 INFO  [io.quarkus] (main) Installed features: [camel-core, camel-geocoder, camel-jsonpath, cdi, resteasy, resteasy-jsonb, smallrye-context-propagation]
   2021-10-25 10:58:53,982 INFO  [org.apa.cam.qua.com.geo.it.GeocoderNominationResource] (executor-thread-0) Retrieve info from address calle marie curie, sevilla, sevilla
   2021-10-25 10:58:55,794 INFO  [org.apa.cam.qua.com.geo.it.GeocoderNominationResource] (executor-thread-0) Retrieve info from georgraphic coordinates latitude : 40.714224, longitude -73.961452
   [ERROR] Tests run: 2, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 14.199 s <<< FAILURE! - in org.apache.camel.quarkus.component.geocoder.it.GeocoderNominationTest
   [ERROR] loadAddress  Time elapsed: 3.136 s  <<< FAILURE!
   java.lang.AssertionError: 
   1 expectation failed.
   JSON path postalCode doesn't match.
   Expected: not null
     Actual: null
   
   	at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
   	at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
   	at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
   	at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490)
   	at org.codehaus.groovy.reflection.CachedConstructor.invoke(CachedConstructor.java:72)
   	at org.codehaus.groovy.reflection.CachedConstructor.doConstructorInvoke(CachedConstructor.java:59)
   	at org.codehaus.groovy.runtime.callsite.ConstructorSite$ConstructorSiteNoUnwrap.callConstructor(ConstructorSite.java:84)
   	at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallConstructor(CallSiteArray.java:59)
   	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callConstructor(AbstractCallSite.java:263)
   	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callConstructor(AbstractCallSite.java:277)
   	at io.restassured.internal.ResponseSpecificationImpl$HamcrestAssertionClosure.validate(ResponseSpecificationImpl.groovy:493)
   	at io.restassured.internal.ResponseSpecificationImpl$HamcrestAssertionClosure$validate$1.call(Unknown Source)
   	at io.restassured.internal.ResponseSpecificationImpl.validateResponseIfRequired(ResponseSpecificationImpl.groovy:674)
   	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
   	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
   	at org.codehaus.groovy.runtime.callsite.PlainObjectMetaMethodSite.doInvoke(PlainObjectMetaMethodSite.java:43)
   	at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite$PogoCachedMethodSiteNoUnwrapNoCoerce.invoke(PogoMetaMethodSite.java:193)
   	at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite.callCurrent(PogoMetaMethodSite.java:61)
   	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:185)
   	at io.restassured.internal.ResponseSpecificationImpl.body(ResponseSpecificationImpl.groovy:261)
   	at io.restassured.specification.ResponseSpecification$body$1.callCurrent(Unknown Source)
   	at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:51)
   	at io.restassured.specification.ResponseSpecification$body$1.callCurrent(Unknown Source)
   	at io.restassured.internal.ResponseSpecificationImpl.body(ResponseSpecificationImpl.groovy:108)
   	at io.restassured.internal.ValidatableResponseOptionsImpl.body(ValidatableResponseOptionsImpl.java:244)
   	at io.restassured.internal.ValidatableResponseImpl.super$2$body(ValidatableResponseImpl.groovy)
   	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
   	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
   	at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:107)
   	at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:323)
   	at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1268)
   	at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodOnSuperN(ScriptBytecodeAdapter.java:144)
   	at io.restassured.internal.ValidatableResponseImpl.body(ValidatableResponseImpl.groovy:298)
   	at io.restassured.internal.ValidatableResponseImpl.body(ValidatableResponseImpl.groovy)
   	at org.apache.camel.quarkus.component.geocoder.it.GeocoderNominationTest.loadAddress(GeocoderNominationTest.java:46)
   	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
   	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
   	at io.quarkus.test.junit.QuarkusTestExtension.runExtensionMethod(QuarkusTestExtension.java:1086)
   	at io.quarkus.test.junit.QuarkusTestExtension.interceptTestMethod(QuarkusTestExtension.java:916)
   	at org.junit.jupiter.engine.execution.ExecutableInvoker$ReflectiveInterceptorCall.lambda$ofVoidMethod$0(ExecutableInvoker.java:115)
   	at org.junit.jupiter.engine.execution.ExecutableInvoker.lambda$invoke$0(ExecutableInvoker.java:105)
   	at org.junit.jupiter.engine.execution.InvocationInterceptorChain$InterceptedInvocation.proceed(InvocationInterceptorChain.java:106)
   	at org.junit.jupiter.engine.extension.TimeoutExtension.intercept(TimeoutExtension.java:149)
   	at org.junit.jupiter.engine.extension.TimeoutExtension.interceptTestableMethod(TimeoutExtension.java:140)
   	at org.junit.jupiter.engine.extension.TimeoutExtension.interceptTestMethod(TimeoutExtension.java:84)
   	at org.junit.jupiter.engine.execution.ExecutableInvoker$ReflectiveInterceptorCall.lambda$ofVoidMethod$0(ExecutableInvoker.java:115)
   	at org.junit.jupiter.engine.execution.ExecutableInvoker.lambda$invoke$0(ExecutableInvoker.java:105)
   	at org.junit.jupiter.engine.execution.InvocationInterceptorChain$InterceptedInvocation.proceed(InvocationInterceptorChain.java:106)
   	at org.junit.jupiter.engine.execution.InvocationInterceptorChain.proceed(InvocationInterceptorChain.java:64)
   	at org.junit.jupiter.engine.execution.InvocationInterceptorChain.chainAndInvoke(InvocationInterceptorChain.java:45)
   	at org.junit.jupiter.engine.execution.InvocationInterceptorChain.invoke(InvocationInterceptorChain.java:37)
   	at org.junit.jupiter.engine.execution.ExecutableInvoker.invoke(ExecutableInvoker.java:104)
   	at org.junit.jupiter.engine.execution.ExecutableInvoker.invoke(ExecutableInvoker.java:98)
   	at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.lambda$invokeTestMethod$6(TestMethodTestDescriptor.java:210)
   	at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
   	at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.invokeTestMethod(TestMethodTestDescriptor.java:206)
   	at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.execute(TestMethodTestDescriptor.java:131)
   	at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.execute(TestMethodTestDescriptor.java:65)
   	at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$5(NodeTestTask.java:139)
   	at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
   	at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$7(NodeTestTask.java:129)
   	at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:137)
   	at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:127)
   	at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
   	at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:126)
   	at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:84)
   	at java.base/java.util.ArrayList.forEach(ArrayList.java:1541)
   	at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.invokeAll(SameThreadHierarchicalTestExecutorService.java:38)
   	at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$5(NodeTestTask.java:143)
   	at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
   	at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$7(NodeTestTask.java:129)
   	at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:137)
   	at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:127)
   	at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
   	at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:126)
   	at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:84)
   	at java.base/java.util.ArrayList.forEach(ArrayList.java:1541)
   	at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.invokeAll(SameThreadHierarchicalTestExecutorService.java:38)
   	at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$5(NodeTestTask.java:143)
   	at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
   	at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$7(NodeTestTask.java:129)
   	at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:137)
   	at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:127)
   	at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
   	at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:126)
   	at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:84)
   	at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.submit(SameThreadHierarchicalTestExecutorService.java:32)
   	at org.junit.platform.engine.support.hierarchical.HierarchicalTestExecutor.execute(HierarchicalTestExecutor.java:57)
   	at org.junit.platform.engine.support.hierarchical.HierarchicalTestEngine.execute(HierarchicalTestEngine.java:51)
   	at org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:108)
   	at org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:88)
   	at org.junit.platform.launcher.core.EngineExecutionOrchestrator.lambda$execute$0(EngineExecutionOrchestrator.java:54)
   	at org.junit.platform.launcher.core.EngineExecutionOrchestrator.withInterceptedStreams(EngineExecutionOrchestrator.java:67)
   	at org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:52)
   	at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:96)
   	at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:75)
   	at org.apache.maven.surefire.junitplatform.JUnitPlatformProvider.invokeAllTests(JUnitPlatformProvider.java:150)
   	at org.apache.maven.surefire.junitplatform.JUnitPlatformProvider.invoke(JUnitPlatformProvider.java:124)
   	at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384)
   	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345)
   	at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126)
   	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418)
   
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [camel-quarkus] jamesnetherton commented on issue #2033: Stub nominatim.openstreetmap.org APIs with WireMock for GeocoderNominationTest

Posted by GitBox <gi...@apache.org>.
jamesnetherton commented on issue #2033:
URL: https://github.com/apache/camel-quarkus/issues/2033#issuecomment-951139338


   I'll take a look tomorrow and see if there's a way of mocking the response.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [camel-quarkus] jamesnetherton commented on issue #2033: Stub nominatim.openstreetmap.org APIs with WireMock for GeocoderNominationTest

Posted by GitBox <gi...@apache.org>.
jamesnetherton commented on issue #2033:
URL: https://github.com/apache/camel-quarkus/issues/2033#issuecomment-952040376


   > Is this fully fixed by #3235 ?
   
   Pretty much. There's no WireMock, but at least the required endpoints are stubbed.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [camel-quarkus] ppalaga closed issue #2033: Stub nominatim.openstreetmap.org APIs with WireMock for GeocoderNominationTest

Posted by GitBox <gi...@apache.org>.
ppalaga closed issue #2033:
URL: https://github.com/apache/camel-quarkus/issues/2033


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org