Merge pull request #3634 from tkyjovsk/KEYCLOAK-4061

KEYCLOAK-4061 Testsuite URLProvider not working right on remote EAP6/AS7 app server
This commit is contained in:
Pavel Drozd 2016-12-13 14:05:05 +01:00 committed by GitHub
commit 76385157fc
3 changed files with 10 additions and 1 deletions

View file

@ -74,7 +74,7 @@ public class URLProvider extends URLResourceProvider {
}
try {
if (System.getProperty("app.server","").startsWith("eap6")) {
if (System.getProperty("app.server.management.protocol","").equals("remote")) {
if (url == null) {
url = new URL("http://localhost:8080/");
}

View file

@ -126,6 +126,14 @@
<id>auth-server-remote</id>
<!--dummy profile for enforcer-->
</profile>
<profile>
<id>app-server-remote-as7-eap6</id>
<!--this profile is required if remote app server is AS7 or EAP6-->
<properties>
<app.server.management.protocol>remote</app.server.management.protocol>
<app.server.management.port>${app.server.management.port.jmx}</app.server.management.port>
</properties>
</profile>
<profile>
<id>no-offset</id>
<properties>

View file

@ -32,6 +32,7 @@
<configuration>
<property name="adapterImplClass">org.jboss.as.arquillian.container.remote.RemoteDeployableContainer</property>
<property name="managementProtocol">${app.server.management.protocol}</property>
<property name="managementAddress">${app.server.host}</property>
<property name="managementPort">${app.server.management.port}</property>
<property name="username">admin</property>