use of org.jboss.pnc.auth.KeycloakServiceClient 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