fix: reverting dev property key changes (#44293)

closes: #44287

Signed-off-by: Steve Hawkins <shawkins@redhat.com>
This commit is contained in:
Steven Hawkins
2025-11-19 01:35:50 -05:00
committed by GitHub
parent febb632e17
commit 731414e44a
2 changed files with 13 additions and 3 deletions

View File

@@ -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

View File

@@ -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