Merge pull request #2611 from mposolda/master

KEYCLOAK-2812 Make testsuite-arquillian working with -Pauth-server-wi…
This commit is contained in:
Marek Posolda 2016-04-13 16:41:24 +02:00
commit 3d310f8cc6
3 changed files with 6 additions and 2 deletions

View file

@ -21,9 +21,11 @@
</resources>
<dependencies>
<module name="javax.api"/>
<module name="javax.ws.rs.api"/>
<module name="javax.servlet.api"/>
<module name="io.undertow.core"/>
<module name="io.undertow.servlet"/>
<module name="org.keycloak.keycloak-common"/>
<module name="org.keycloak.keycloak-core"/>
<module name="org.keycloak.keycloak-server-spi"/>
</dependencies>

View file

@ -36,7 +36,7 @@ public class ClientTemplateTest extends AbstractClientTest {
// KEYCLOAK-2809
@Test
public void testRemove() {
public void testRemoveScopedRole() {
// Add realm role
RoleRepresentation roleRep = new RoleRepresentation();
roleRep.setName("foo-role");

View file

@ -26,6 +26,7 @@ import java.util.Set;
import org.jboss.arquillian.container.spi.client.container.LifecycleException;
import org.junit.After;
import org.junit.Assert;
import org.junit.Ignore;
import org.junit.Test;
import org.keycloak.Config;
import org.keycloak.admin.client.resource.ClientResource;
@ -57,9 +58,10 @@ public class LegacyImportTest extends AbstractExportImportTest {
}
@Ignore // TODO: Restart and set system properties doesn't work on wildfly ATM. Figure and re-enable
@Test
public void importFrom11() throws LifecycleException {
// Setup system properties for import ( TODO: Does this work with external container? )
// Setup system properties for import ( TODO: Set properly with external-container )
ExportImportConfig.setProvider(SingleFileExportProviderFactory.PROVIDER_ID);
URL url = LegacyImportTest.class.getResource("/exportimport-test/kc11-exported-realm.json");
String targetFilePath = new File(url.getFile()).getAbsolutePath();