-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Fix issues in SiriAzure initialization #5760
Fix issues in SiriAzure initialization #5760
Conversation
- Remove duplicate retry logic - Make sure that primed status is set correctly
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## dev-2.x #5760 +/- ##
=============================================
+ Coverage 67.79% 67.80% +0.01%
- Complexity 16519 16520 +1
=============================================
Files 1904 1905 +1
Lines 72263 72247 -16
Branches 7438 7440 +2
=============================================
Hits 48990 48990
+ Misses 20754 20739 -15
+ Partials 2519 2518 -1 ☔ View full report in Codecov by Sentry. |
src/ext/java/org/opentripplanner/ext/siri/updater/azure/AbstractAzureSiriUpdater.java
Outdated
Show resolved
Hide resolved
src/ext/java/org/opentripplanner/ext/siri/updater/azure/AbstractAzureSiriUpdater.java
Outdated
Show resolved
Hide resolved
src/ext/java/org/opentripplanner/ext/siri/updater/azure/SiriAzureETUpdater.java
Outdated
Show resolved
Hide resolved
src/ext/java/org/opentripplanner/ext/siri/updater/azure/SiriAzureSXUpdater.java
Outdated
Show resolved
Hide resolved
src/ext/java/org/opentripplanner/ext/siri/updater/azure/SiriAzureETUpdater.java
Outdated
Show resolved
Hide resolved
src/ext/java/org/opentripplanner/ext/siri/updater/azure/SiriAzureSXUpdater.java
Outdated
Show resolved
Hide resolved
src/main/java/org/opentripplanner/framework/io/OtpHttpClientStatusCodeException.java
Outdated
Show resolved
Hide resolved
Co-authored-by: Johan Torin <[email protected]>
Note: |
8951628
to
267d3b7
Compare
src/ext/java/org/opentripplanner/ext/siri/updater/azure/AbstractAzureSiriUpdater.java
Outdated
Show resolved
Hide resolved
src/ext/java/org/opentripplanner/ext/siri/updater/azure/AbstractAzureSiriUpdater.java
Outdated
Show resolved
Hide resolved
…ctAzureSiriUpdater.java Co-authored-by: Leonard Ehrenfried <[email protected]>
Summary
After discussions in the developer meeting this PR changes the OtpHttpClient to treat all 2xx http codes as successful and also adds a
executeAndMapOptional()
method to the OtpHttpClient.Other than that there are only changes the SiriAzure sandbox code.
The changes in the SiriAzure code restructure some of the code in order to:
Unit tests
This kind of high level glue code is unfortunately hard to test without doing a lot of mocking.
Bumping the serialization version id
Nope