Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
Signed-off-by: Pablo Hernán Carle <pablo.carle@broadcom.com>
  • Loading branch information
Pablo Hernán Carle committed Aug 1, 2023
1 parent 95ef713 commit ecc2126
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@

import static org.hamcrest.CoreMatchers.is;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.mockito.Mockito.doNothing;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.when;
import static org.zowe.apiml.security.common.config.AuthConfigurationProperties.JWT_AUTOCONFIGURATION_MODE.*;
Expand Down Expand Up @@ -187,6 +188,8 @@ private void prepareValidZosmfInDiscovery() {
when(discovery.getInstances(ZOSMF_ID)).thenReturn(
Collections.singletonList(mock(ServiceInstance.class))
);
when(discovery.getServices()).thenReturn(Collections.singletonList("serviceId")); // just verifies if there's at least one as a basic health
doNothing().when(discovery).probe();
when(authConfigurationProperties.validatedZosmfServiceId()).thenReturn(ZOSMF_ID);
}
}

0 comments on commit ecc2126

Please sign in to comment.