Search in sources :

Example 1 with RedbackRuntimeConfigurationService

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));
}
Also used : UserManagerImplementationInformation(org.apache.archiva.rest.api.model.UserManagerImplementationInformation) RedbackRuntimeConfigurationService(org.apache.archiva.rest.api.services.RedbackRuntimeConfigurationService) Test(org.junit.Test)

Example 2 with RedbackRuntimeConfigurationService

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));
}
Also used : RedbackRuntimeConfigurationService(org.apache.archiva.rest.api.services.RedbackRuntimeConfigurationService) RBACManagerImplementationInformation(org.apache.archiva.rest.api.model.RBACManagerImplementationInformation) Test(org.junit.Test)

Example 3 with RedbackRuntimeConfigurationService

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;
}
Also used : RedbackRuntimeConfigurationService(org.apache.archiva.rest.api.services.RedbackRuntimeConfigurationService) JacksonJaxbJsonProvider(com.fasterxml.jackson.jaxrs.json.JacksonJaxbJsonProvider)

Aggregations

RedbackRuntimeConfigurationService (org.apache.archiva.rest.api.services.RedbackRuntimeConfigurationService)3 Test (org.junit.Test)2 JacksonJaxbJsonProvider (com.fasterxml.jackson.jaxrs.json.JacksonJaxbJsonProvider)1 RBACManagerImplementationInformation (org.apache.archiva.rest.api.model.RBACManagerImplementationInformation)1 UserManagerImplementationInformation (org.apache.archiva.rest.api.model.UserManagerImplementationInformation)1