mirror of
https://github.com/keycloak/keycloak.git
synced 2025-12-16 20:15:46 -06:00
fix: reverting dev property key changes (#44293)
closes: #44287 Signed-off-by: Steve Hawkins <shawkins@redhat.com>
This commit is contained in:
@@ -77,9 +77,10 @@ quarkus.http.limits.max-header-size=65535
|
||||
%dev.kc.http-enabled=true
|
||||
%dev.kc.hostname-strict=false
|
||||
%dev.kc.cache=local
|
||||
%dev.kc.spi-theme--cache--themes=false
|
||||
%dev.kc.spi-theme--cache--templates=false
|
||||
%dev.kc.spi-theme--static--max-age=-1
|
||||
# Theme no-cache defaults for dev - these are not standard spi properties, there is no provider
|
||||
%dev.kc.spi-theme--cache-themes=false
|
||||
%dev.kc.spi-theme--cache-templates=false
|
||||
%dev.kc.spi-theme--static-max-age=-1
|
||||
|
||||
# The default configuration when running import, export, bootstrap-admin
|
||||
%nonserver.kc.http-enabled=true
|
||||
|
||||
@@ -51,6 +51,7 @@ import org.mariadb.jdbc.MariaDbDataSource;
|
||||
import org.postgresql.xa.PGXADataSource;
|
||||
|
||||
import static org.junit.Assert.assertEquals;
|
||||
import static org.junit.Assert.assertFalse;
|
||||
import static org.junit.Assert.assertNotNull;
|
||||
import static org.junit.Assert.assertNull;
|
||||
import static org.junit.Assert.assertTrue;
|
||||
@@ -427,6 +428,14 @@ public class ConfigurationTest extends AbstractConfigurationTest {
|
||||
Assert.assertEquals("foo-val3", config.getConfigValue("quarkus.datasource.bar").getValue());
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testDevThemeProperties() {
|
||||
assertNull(initConfig("theme").getBoolean("cacheThemes"));
|
||||
|
||||
System.setProperty(org.keycloak.common.util.Environment.PROFILE, "dev");
|
||||
assertFalse(initConfig("theme").getBoolean("cacheThemes"));
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testClusterConfig() {
|
||||
// Cluster enabled by default, but disabled for the "dev" profile
|
||||
|
||||
Reference in New Issue
Block a user