use of org.apache.archiva.rest.api.services.RedbackRuntimeConfigurationService in project archiva by apache.
the class RedbackRuntimeConfigurationServiceTest method usermanagersinformations.
@Test
public void usermanagersinformations() throws Exception {
RedbackRuntimeConfigurationService service = getRedbackRuntimeConfigurationService();
List<UserManagerImplementationInformation> infos = service.getUserManagerImplementationInformations();
assertThat(infos).isNotNull().isNotEmpty().contains(new UserManagerImplementationInformation("jpa", null, false));
}
use of org.apache.archiva.rest.api.services.RedbackRuntimeConfigurationService in project archiva by apache.
the class RedbackRuntimeConfigurationServiceTest method rbacmanagersinformations.
@Test
public void rbacmanagersinformations() throws Exception {
RedbackRuntimeConfigurationService service = getRedbackRuntimeConfigurationService();
List<RBACManagerImplementationInformation> infos = service.getRbacManagerImplementationInformations();
assertThat(infos).isNotNull().isNotEmpty().contains(new RBACManagerImplementationInformation("jpa", null, false));
}
use of org.apache.archiva.rest.api.services.RedbackRuntimeConfigurationService in project archiva by apache.
the class AbstractArchivaRestTest method getRedbackRuntimeConfigurationService.
protected RedbackRuntimeConfigurationService getRedbackRuntimeConfigurationService() {
RedbackRuntimeConfigurationService service = JAXRSClientFactory.create(getBaseUrl() + "/" + getRestServicesPath() + "/archivaServices/", RedbackRuntimeConfigurationService.class, Collections.singletonList(new JacksonJaxbJsonProvider()));
WebClient.client(service).accept(MediaType.APPLICATION_JSON_TYPE);
WebClient.client(service).type(MediaType.APPLICATION_JSON_TYPE);
WebClient.client(service).header("Authorization", authorizationHeader);
WebClient.client(service).header("Referer", "http://localhost:" + port);
WebClient.getConfig(service).getHttpConduit().getClient().setReceiveTimeout(300000);
return service;
}
Aggregations