diff --git a/testsuite/integration-arquillian/tests/other/console_no_users/src/test/java/org/keycloak/testsuite/console/pages/WelcomePageTest.java b/testsuite/integration-arquillian/tests/base/src/test/java/org/keycloak/testsuite/welcomepage/WelcomePageTest.java similarity index 77% rename from testsuite/integration-arquillian/tests/other/console_no_users/src/test/java/org/keycloak/testsuite/console/pages/WelcomePageTest.java rename to testsuite/integration-arquillian/tests/base/src/test/java/org/keycloak/testsuite/welcomepage/WelcomePageTest.java index 6c61094f6e..0411ce96fe 100644 --- a/testsuite/integration-arquillian/tests/other/console_no_users/src/test/java/org/keycloak/testsuite/console/pages/WelcomePageTest.java +++ b/testsuite/integration-arquillian/tests/base/src/test/java/org/keycloak/testsuite/welcomepage/WelcomePageTest.java @@ -1,6 +1,30 @@ -package org.keycloak.testsuite.console.pages; +/* + * Copyright 2017 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.welcomepage; import org.jboss.arquillian.graphene.page.Page; +import org.junit.After; +import org.junit.Assert; +import org.junit.Assume; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.FixMethodOrder; +import org.junit.Test; import org.junit.runners.MethodSorters; import org.keycloak.representations.idm.RealmRepresentation; import org.keycloak.testsuite.AbstractKeycloakTest; @@ -25,7 +49,12 @@ public class WelcomePageTest extends AbstractKeycloakTest { @Page protected OIDCLogin loginPage; - + + @BeforeClass + public static void beforeWelcomePageTest() { + Assume.assumeTrue(Boolean.parseBoolean(System.getProperty("skip.add.user.json"))); + } + @Override public void addTestRealms(List testRealms) { // no operation @@ -39,7 +68,6 @@ public class WelcomePageTest extends AbstractKeycloakTest { @Override public void beforeAbstractKeycloakTest() { setDefaultPageUriParameters(); - driverSettings(); } @After diff --git a/testsuite/integration-arquillian/tests/other/console_no_users/pom.xml b/testsuite/integration-arquillian/tests/other/console_no_users/pom.xml deleted file mode 100644 index 18d0a4411f..0000000000 --- a/testsuite/integration-arquillian/tests/other/console_no_users/pom.xml +++ /dev/null @@ -1,48 +0,0 @@ - - - - - - 4.0.0 - - - org.keycloak.testsuite - integration-arquillian-tests-other - 3.0.0.CR1-SNAPSHOT - - - integration-arquillian-tests-console-no-users - - Admin Console UI Tests - Without pre-configured accounts - - - - - maven-resources-plugin - - - copy-admin-user-json-file - none - - - - - - - diff --git a/testsuite/integration-arquillian/tests/other/pom.xml b/testsuite/integration-arquillian/tests/other/pom.xml index 5278814c6e..7d38be8def 100644 --- a/testsuite/integration-arquillian/tests/other/pom.xml +++ b/testsuite/integration-arquillian/tests/other/pom.xml @@ -130,12 +130,6 @@ console - - console-ui-no-users-tests - - console_no_users - - mod_auth_mellon