Repository navigation
[Test] Add test for /health endpoint on engine failure - #26074
Conversation
There was a problem hiding this comment.
Code Review
This pull request introduces a valuable unit test for the /health endpoint. The test correctly verifies that a 503 Service Unavailable status is returned when an EngineDeadError is raised, which is crucial for ensuring the service's health check behaves as expected under failure conditions. The implementation is clean, using mocks effectively to isolate the component under test. This change improves the overall test coverage and helps prevent future regressions. The code is well-structured and I have no concerns.
Signed-off-by: dongbo910220 <1275604947@qq.com>
1a63686 to
f681112
Compare
|
Hi @DarkLight1337, Just a friendly follow-up on this PR. Could you please take a look when you have a chance? Any feedback would be greatly appreciated. Thank you! |
|
Sorry for the delay, thought @cadedaniel would review it. I'll just stamp this |
|
@DarkLight1337 Great, thank you so much! |
…#26074) Signed-off-by: dongbo910220 <1275604947@qq.com>
…#26074) Signed-off-by: dongbo910220 <1275604947@qq.com>
…#26074) Signed-off-by: dongbo910220 <1275604947@qq.com> Signed-off-by: 0xrushi <6279035+0xrushi@users.noreply.github.com>
…#26074) Signed-off-by: dongbo910220 <1275604947@qq.com> Signed-off-by: 0xrushi <6279035+0xrushi@users.noreply.github.com>
…#26074) Signed-off-by: dongbo910220 <1275604947@qq.com>
…#26074) Signed-off-by: dongbo910220 <1275604947@qq.com>
…#26074) Signed-off-by: dongbo910220 <1275604947@qq.com>
…#26074) Signed-off-by: dongbo910220 <1275604947@qq.com>
…#26074) Signed-off-by: dongbo910220 <1275604947@qq.com>
…#26074) Signed-off-by: dongbo910220 <1275604947@qq.com>
…#26074) Signed-off-by: dongbo910220 <1275604947@qq.com>
Purpose
This PR adds an automated test for the behavior fixed in #24897, as requested by @cadedaniel in the original PR's comments.
The new test verifies that the
/healthendpoint correctly returns503 Service UnavailablewhenEngineDeadErroris raised, which prevents future regressions of this behavior.Relates to: #24897
Test Plan
Run the new test case: