-
Notifications
You must be signed in to change notification settings - Fork 132
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
Jmax/lg 15676 passport api health check infrastructure #11891
base: main
Are you sure you want to change the base?
Jmax/lg 15676 passport api health check infrastructure #11891
Conversation
`HealthCheckResponseOk` and `HealthCheckResponseFailure`
d42ba8b
to
4acc77c
Compare
[skip changelog]
bfa7c30
to
d5efe7c
Compare
3bb4f24
to
b4ed521
Compare
@@ -285,6 +285,7 @@ outbound_connection_check_retry_count: 2 | |||
outbound_connection_check_timeout: 5 | |||
outbound_connection_check_url: 'https://checkip.amazonaws.com' | |||
participate_in_dap: false | |||
passports_api_health_check_endpoint: 'https://caapinpe.state.gov/api/passport-match-prc-api/v1/html' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
passports_api_health_check_endpoint: 'https://caapinpe.state.gov/api/passport-match-prc-api/v1/html' | |
passports_api_health_check_endpoint: '' |
@@ -0,0 +1,41 @@ | |||
# frozen_string_literal: true | |||
|
|||
module DocAuth |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this file to be deleted after namespace change?
|
||
def connection | ||
@connection ||= Faraday::Connection.new( | ||
url: IdentityConfig.store.passports_api_health_check_endpoint, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
there are 2 healthcheck endpoints for which we need to be able to check ...
there is also a composite healthcheck endpoint
🎫 Ticket
Link to the relevant ticket:
LG-15676
🛠 Summary of changes
Added request and response classes for the Dos passport API health check
📜 Testing Plan
Provide a checklist of steps to confirm the changes.
fetch
on the health check request (see below). Verify that the connecton eventually times out, and that thefetch
call returned aHealthCheckFailure
with a Faraday network error.