diff --git a/testsuite/integration-arquillian/tests/base/src/main/java/org/keycloak/testsuite/arquillian/AuthServerTestEnricher.java b/testsuite/integration-arquillian/tests/base/src/main/java/org/keycloak/testsuite/arquillian/AuthServerTestEnricher.java
index 23de4106e7..984ba7de4f 100644
--- a/testsuite/integration-arquillian/tests/base/src/main/java/org/keycloak/testsuite/arquillian/AuthServerTestEnricher.java
+++ b/testsuite/integration-arquillian/tests/base/src/main/java/org/keycloak/testsuite/arquillian/AuthServerTestEnricher.java
@@ -183,7 +183,7 @@ public class AuthServerTestEnricher {
}
public void checkServerLogs(@Observes(precedence = -1) BeforeSuite event) throws IOException, InterruptedException {
- boolean checkLog = System.getProperty("auth.server.log.check", "true").equals("true");
+ boolean checkLog = Boolean.parseBoolean(System.getProperty("auth.server.log.check", "true"));
if (checkLog && suiteContext.getAuthServerInfo().isJBossBased()) {
String jbossHomePath = suiteContext.getAuthServerInfo().getProperties().get("jbossHome");
LogChecker.checkJBossServerLog(jbossHomePath);
diff --git a/testsuite/integration-arquillian/tests/base/src/test/resources/arquillian.xml b/testsuite/integration-arquillian/tests/base/src/test/resources/arquillian.xml
index b2a7bb108a..6ccaea4df7 100644
--- a/testsuite/integration-arquillian/tests/base/src/test/resources/arquillian.xml
+++ b/testsuite/integration-arquillian/tests/base/src/test/resources/arquillian.xml
@@ -59,7 +59,7 @@
${auth.server.jboss}
org.jboss.as.arquillian.container.managed.ManagedDeployableContainer
${auth.server.home}
- standalone.xml
+ ${auth.server.config}
-Djboss.socket.binding.port-offset=${auth.server.port.offset}
-Djboss.bind.address=0.0.0.0
diff --git a/testsuite/integration-arquillian/tests/other/clean-start/pom.xml b/testsuite/integration-arquillian/tests/other/clean-start/pom.xml
new file mode 100644
index 0000000000..43b636be6c
--- /dev/null
+++ b/testsuite/integration-arquillian/tests/other/clean-start/pom.xml
@@ -0,0 +1,69 @@
+
+
+
+
+
+ 4.0.0
+
+
+ org.keycloak.testsuite
+ integration-arquillian-tests-other
+ 1.9.5.Final-SNAPSHOT
+
+
+ integration-arquillian-tests-smoke-clean-start
+
+ Clean Start Tests
+
+
+
+
+ maven-enforcer-plugin
+
+
+ enforce-auth-server
+ generate-test-resources
+
+ enforce
+
+
+
+
+ auth.server
+ (wildfly)|(eap)
+ Tests require activation of profile "auth-server-wildfly" or "auth-server-eap".
+
+
+
+
+
+
+
+
+
+
+ standalone
+
+
+ standalone-ha
+
+ standalone-ha.xml
+
+
+
+
\ No newline at end of file
diff --git a/testsuite/integration-arquillian/tests/other/clean-start/src/test/java/org/keycloak/testsuite/clean/start/CleanStartTest.java b/testsuite/integration-arquillian/tests/other/clean-start/src/test/java/org/keycloak/testsuite/clean/start/CleanStartTest.java
new file mode 100644
index 0000000000..31b230f116
--- /dev/null
+++ b/testsuite/integration-arquillian/tests/other/clean-start/src/test/java/org/keycloak/testsuite/clean/start/CleanStartTest.java
@@ -0,0 +1,42 @@
+/*
+ * Copyright 2016 Red Hat, Inc. and/or its affiliates
+ * and other contributors as indicated by the @author tags.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.keycloak.testsuite.clean.start;
+
+import org.jboss.arquillian.container.test.api.RunAsClient;
+import org.jboss.arquillian.junit.Arquillian;
+import static org.junit.Assert.assertTrue;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+
+/**
+ * @author Vlastislav Ramik
+ */
+@RunWith(Arquillian.class)
+@RunAsClient
+public class CleanStartTest {
+
+
+ @Test
+ public void cleanStartTest() {
+ //empty test - container is started via arquillian and logs are checked
+ //by org.keycloak.testsuite.arquillian.AuthServerTestEnricher#checkServerLogs
+
+ //verify that checkServerLogs is not skipped
+ assertTrue("checkServerLogs is skipped.", Boolean.parseBoolean(System.getProperty("auth.server.log.check", "true")));
+ }
+}
\ No newline at end of file
diff --git a/testsuite/integration-arquillian/tests/pom.xml b/testsuite/integration-arquillian/tests/pom.xml
index dda634156e..5241b52ad4 100755
--- a/testsuite/integration-arquillian/tests/pom.xml
+++ b/testsuite/integration-arquillian/tests/pom.xml
@@ -154,6 +154,7 @@
${auth.server.ssl.required}
${auth.server.jboss.startup.timeout}
${auth.server.config.dir}
+ ${auth.server.config}
${frontend.console.output}
${backend.console.output}
@@ -193,7 +194,6 @@
org.wildfly
wildfly-arquillian-container-remote
- ${arquillian-wildfly-container.version}
@@ -204,6 +204,7 @@
wildfly
true
false
+ standalone.xml
${auth.server.home}/standalone/configuration
1.3.173
@@ -221,6 +222,7 @@
eap
true
false
+ standalone.xml
${auth.server.home}/standalone/configuration
1.3.173