Search in sources :

Example 11 with ProxyMapping

use of org.keycloak.connections.httpclient.ProxyMappings.ProxyMapping in project keycloak by keycloak.

the class ProxyMappingsTest method shouldReturnProxy1ForConfiguredProxyMapping.

@Test
public void shouldReturnProxy1ForConfiguredProxyMapping() {
    ProxyMapping proxy = proxyMappings.getProxyFor("account.google.com");
    assertThat(proxy.getProxyHost(), is(notNullValue()));
    assertThat(proxy.getProxyHost().getHostName(), is("proxy1"));
}
Also used : ProxyMapping(org.keycloak.connections.httpclient.ProxyMappings.ProxyMapping) Test(org.junit.Test)

Aggregations

ProxyMapping (org.keycloak.connections.httpclient.ProxyMappings.ProxyMapping)11 Test (org.junit.Test)10 HttpHost (org.apache.http.HttpHost)1 AuthScope (org.apache.http.auth.AuthScope)1 UsernamePasswordCredentials (org.apache.http.auth.UsernamePasswordCredentials)1 CredentialsProvider (org.apache.http.client.CredentialsProvider)1 BasicCredentialsProvider (org.apache.http.impl.client.BasicCredentialsProvider)1