Skip to content
This repository has been archived by the owner on Nov 29, 2024. It is now read-only.

Commit

Permalink
feat: introduce endpoint probe
Browse files Browse the repository at this point in the history
  • Loading branch information
shsma committed Nov 22, 2024
1 parent 9547e19 commit d6eae2a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class ReadyzApiControllerTest {
@InjectMocks private ReadyzApiController controller;

@Test
void getReadyz_WhenModelInfoSucceeds_ReturnsOk() {
void getReadyz_WhenModelSchemaSucceeds_ReturnsOk() {
Model model = new Model();
model.setSchema(new ModelSchema());
when(scorer.getModelInfo()).thenReturn(model);
Expand All @@ -34,7 +34,7 @@ void getReadyz_WhenModelInfoSucceeds_ReturnsOk() {
}

@Test
void getReadyz_WhenModelInfoFails_ReturnsError() {
void getReadyz_WhenModelSchemaFails_ReturnsError() {
when(scorer.getModelInfo()).thenThrow(new RuntimeException("Test error"));

ResponseEntity<String> response = controller.getReadyz();
Expand Down

0 comments on commit d6eae2a

Please sign in to comment.