use of org.jboss.pnc.auth.DefaultKeycloakServiceClient in project pnc by project-ncl.
the class KeycloakServiceClientTest method shouldObtainAuthToken.
@Test
public void shouldObtainAuthToken() throws ConfigurationParseException, IOException {
SystemConfig systemConfig = SystemConfigMock.withKeycloakServiceAccount();
KeycloakServiceClient keycloakServiceClient = new DefaultKeycloakServiceClient(systemConfig);
String authToken = keycloakServiceClient.getAuthToken();
Assertions.assertThat(authToken).isNotEmpty();
}
Aggregations