ppalaga commented on pull request #4363: URL: https://github.com/apache/camel/pull/4363#issuecomment-704154916
> If you have ideas on how I can mock that URL or call, or how we can use a mock proxy to redirect to another URL, as described here [googlemaps/google-maps-services-java#132](https://github.com/googlemaps/google-maps-services-java/issues/132). I think the proxy solution could work for us in Camel Quarkus without any change here in Camel. The rough idea is as follows: * Have a set of HTTP endpoints on `localhost:somePort` that would return the pre-recorded JSONs as you have them here. This can be done using `platform-http` as we do in telegram: https://github.com/apache/camel-quarkus/blob/master/integration-tests/telegram/src/main/java/org/apache/camel/quarkus/component/telegram/it/TelegramRoutes.java#L75-L93 * Set the geocoder component's proxy options to `localhost:somePort`. This would be done only if `GOOGLE_API_KEY` is not set, so that we test against the real remote API if GOOGLE_API_KEY is available. Again, this would be similar to what we do in Telegram: https://github.com/apache/camel-quarkus/blob/master/integration-tests/telegram/src/main/java/org/apache/camel/quarkus/component/telegram/it/TelegramRoutes.java#L55-L71 That might do what we need. WDYT? ---------------------------------------------------------------- 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: us...@infra.apache.org