mirror of
https://github.com/keycloak/keycloak.git
synced 2025-12-16 20:15:46 -06:00
Set Workflows as tech preview
Closes #44881 Signed-off-by: Stefan Guilhen <sguilhen@redhat.com>
This commit is contained in:
committed by
Pedro Igor
parent
a07500045f
commit
0fc9650acc
@@ -147,7 +147,7 @@ public class Profile {
|
||||
ROLLING_UPDATES_V1("Rolling Updates", Type.DEFAULT, 1),
|
||||
ROLLING_UPDATES_V2("Rolling Updates for patch releases", Type.PREVIEW, 2),
|
||||
|
||||
WORKFLOWS("Workflows", Type.DEFAULT),
|
||||
WORKFLOWS("Workflows", Type.PREVIEW),
|
||||
|
||||
LOG_MDC("Mapped Diagnostic Context (MDC) information in logs", Type.DEFAULT),
|
||||
|
||||
|
||||
@@ -17,13 +17,12 @@
|
||||
|
||||
package org.keycloak.tests.workflow;
|
||||
|
||||
import org.keycloak.testframework.server.KeycloakServerConfig;
|
||||
import org.keycloak.testframework.server.KeycloakServerConfigBuilder;
|
||||
|
||||
public class WorkflowsBlockingServerConfig implements KeycloakServerConfig {
|
||||
public class WorkflowsBlockingServerConfig extends WorkflowsServerConfig {
|
||||
|
||||
@Override
|
||||
public KeycloakServerConfigBuilder configure(KeycloakServerConfigBuilder config) {
|
||||
return config.option("spi-workflow--default--executor-blocking", Boolean.TRUE.toString());
|
||||
}
|
||||
return super.configure(config)
|
||||
.option("spi-workflow--default--executor-blocking", Boolean.TRUE.toString()); }
|
||||
}
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
package org.keycloak.tests.workflow;
|
||||
|
||||
import org.keycloak.models.workflow.WorkflowsEventListenerFactory;
|
||||
import org.keycloak.testframework.server.KeycloakServerConfig;
|
||||
import org.keycloak.testframework.server.KeycloakServerConfigBuilder;
|
||||
|
||||
public class WorkflowsScheduledTaskServerConfig implements KeycloakServerConfig {
|
||||
public class WorkflowsScheduledTaskServerConfig extends WorkflowsBlockingServerConfig {
|
||||
|
||||
@Override
|
||||
public KeycloakServerConfigBuilder configure(KeycloakServerConfigBuilder config) {
|
||||
return config.option("spi-events-listener--" + WorkflowsEventListenerFactory.ID + "--step-runner-task-interval", "1000");
|
||||
return super.configure(config)
|
||||
.option("spi-events-listener--" + WorkflowsEventListenerFactory.ID + "--step-runner-task-interval", "1000");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
package org.keycloak.tests.workflow;
|
||||
|
||||
import org.keycloak.common.Profile.Feature;
|
||||
import org.keycloak.testframework.server.KeycloakServerConfig;
|
||||
import org.keycloak.testframework.server.KeycloakServerConfigBuilder;
|
||||
|
||||
public class WorkflowsServerConfig implements KeycloakServerConfig {
|
||||
|
||||
@Override
|
||||
public KeycloakServerConfigBuilder configure(KeycloakServerConfigBuilder config) {
|
||||
return config.features(Feature.WORKFLOWS);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user