KEYCLOAK-13571 KcinitTest fails with -Dproduct due to skipped maven plugin exacution

This commit is contained in:
vramik 2020-03-26 06:15:58 +01:00 committed by Hynek Mlnařík
parent 10d92a01a6
commit 780d11e790

View file

@ -17,6 +17,7 @@
package org.keycloak.testsuite.cli;
import java.io.File;
import org.jboss.arquillian.graphene.page.Page;
import org.junit.Assert;
import org.junit.Before;
@ -63,6 +64,8 @@ import java.util.HashMap;
import java.util.Map;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import org.junit.Assume;
import org.junit.BeforeClass;
/**
* Test that clients can override auth flows
@ -85,6 +88,11 @@ public class KcinitTest extends AbstractTestRealmKeycloakTest {
public void configureTestRealm(RealmRepresentation testRealm) {
}
@BeforeClass
public static void kcinitAvailable() {
Assume.assumeTrue(new File(KcinitExec.WORK_DIR + File.separator + KcinitExec.CMD).exists());
}
@Before
public void setupFlows() {
RequiredActionProviderRepresentation rep = adminClient.realm("test").flows().getRequiredAction("terms_and_conditions");