-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
We currently use `/ctrl/status` as a health check endpoint. The introduction of auth delegation (#804) applies, when enabled, to all `/ctrl` endpoints, including the health check. That means that the health checker needs to have credentials. Instead, this adds a separate health check endpoint `/pub/health` which is part of the `/pub` path, which is not credentialed. This does not include the version information returned by the `/ctrl/status` endpoint, but does a health check.
- Loading branch information
Showing
4 changed files
with
34 additions
and
1 deletion.
There are no files selected for viewing
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
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,13 @@ | ||
use common::test_env::TestEnvironment; | ||
use plane_test_macro::plane_test; | ||
|
||
mod common; | ||
|
||
#[plane_test] | ||
async fn controller_health_check(env: TestEnvironment) { | ||
let controller = env.controller().await; | ||
let client = controller.client(); | ||
let result = client.health_check().await; | ||
|
||
assert!(result.is_ok()); | ||
} |
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
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