KEYCLOAK-6309 Fix tests

Add trustore to war even if ssl is not enabled because HttpClient is configured with truststore
This commit is contained in:
mhajas authored and Hynek Mlnařík committed 2018-02-09 10:24:58 +01:00
1 parent b91998a0d8
commit 2b65adc15f
1 file changed
+2 -3
@@ -160,9 +160,8 @@ public class DeploymentArchiveProcessor implements ApplicationArchiveProcessor {
archive.add(new StringAsset(IOUtil.documentToString(doc)), adapterConfigPath);
if (APP_SERVER_SSL_REQUIRED) {
((WebArchive) archive).addAsResource(new File(DeploymentArchiveProcessor.class.getResource("/keystore/keycloak.truststore").getFile()));
}
((WebArchive) archive).addAsResource(new File(DeploymentArchiveProcessor.class.getResource("/keystore/keycloak.truststore").getFile()));
// For running SAML tests it is necessary to have few dependencies on app-server side.
// Few of them are not in adapter zip so we need to add them manually here
} else { // OIDC adapter config