-
Notifications
You must be signed in to change notification settings - Fork 197
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use WireMock for Dropbox integration tests #4047
Comments
At first I thought this was going to be a fairly quick task based on the Geocoder tests, but I found myself heading down a warren of rabbit holes with this. In order to test the Dropbox extension with Wiremock, the wiremock server URL must be passed to the dropbox client within the Camel component. I first tried creating an instance of The next issue was setting the client in the Camel component. I had to create a sub-class of the However, this still did not work as the I don't know if the Wiremock proxy support can be used to create an alias that can be used instead of |
Thanks for your patient investigation, @djcoleman ! We should perhaps try our luck asking the Dropbox client team for a proper base URI support? https://github.com/dropbox/dropbox-sdk-java/issues |
I found a question from 2019 on dropboxforum.com requesting WireMock support. The responder acknowledged the problem and promised to submit a feature request, although he didn't make any commitments to implementing it. I don't see any tickets in the dropbox-sdk-java issues list already though, so I can submit a request myself and see if anything happens. |
@djcoleman could you please paste the Dropbox issue URL here? |
Here it is: dropbox/dropbox-sdk-java#487 |
Not sure if it is possible or not but it'd be worth investigating to see if we have the tests run on the CI build without requiring real credentials.
The text was updated successfully, but these errors were encountered: