KEYCLOAK-14944 - Unit test failure in keycloak-services on Java 11

This commit is contained in:
Dmitry Telegin 2020-07-31 15:06:20 +03:00 committed by Pedro Igor
parent b68d06f91c
commit 70ee36224c

View file

@ -48,7 +48,7 @@ import com.fasterxml.jackson.databind.ObjectMapper;
public class DefaultHttpClientFactoryTest {
private static final String DISABLE_TRUST_MANAGER_PROPERTY = "disable-trust-manager";
private static final String TEST_DOMAIN = "www.google.com";
private static final String TEST_DOMAIN = "keycloak.org";
@Test
public void createHttpClientProviderWithDisableTrustManager() throws IOException{
@ -64,7 +64,7 @@ public class DefaultHttpClientFactoryTest {
Assume.assumeTrue( "Could not get test url for domain", testURL.isPresent() );
response = httpClient.execute(new HttpGet(testURL.get()));
}
assertEquals(HttpStatus.SC_OK,response.getStatusLine().getStatusCode());
assertEquals(HttpStatus.SC_NOT_FOUND,response.getStatusLine().getStatusCode());
}
@Test(expected = SSLPeerUnverifiedException.class)