forked from apollographql/federation-rs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a basic health check to the router (apollographql#252)
* Add a basic health check to the router Provide a health check endpoint which behaves in the same way as the health check on the gateway. At this point in time it always returns pass because we don't have a different health status to set. resolves: apollographql#54
- Loading branch information
Showing
3 changed files
with
61 additions
and
1 deletion.
There are no files selected for viewing
6 changes: 6 additions & 0 deletions
6
...shots/apollo_router__warp_http_server_factory__tests__it_provides_health_status_body.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
source: apollo-router/src/warp_http_server_factory.rs | ||
expression: "String::from_utf8_lossy(res.body())" | ||
|
||
--- | ||
"{\"status\":\"pass\"}" |
6 changes: 6 additions & 0 deletions
6
...ots/apollo_router__warp_http_server_factory__tests__it_provides_health_status_header.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
source: apollo-router/src/warp_http_server_factory.rs | ||
expression: "hdrs[\"content-type\"].to_str().unwrap()" | ||
|
||
--- | ||
application/json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters