mirror of
https://github.com/cryptomator/cryptomator.git
synced 2026-09-04 15:18:09 +00:00
Rename jvm property and actual config file
This commit is contained in:
@@ -30,7 +30,7 @@ class AdminPropertiesSetter {
|
||||
|
||||
private static final Logger LOG = EventualLogger.INSTANCE;
|
||||
private static final long MAX_CONFIG_SIZE_BYTES = 8192;
|
||||
private static final String ADMIN_PROP_FILE_KEY = "cryptomator.adminConfig";
|
||||
private static final String ADMIN_PROP_FILE_KEY = "cryptomator.adminConfigPath";
|
||||
private static final Set<String> ALLOWED_OVERRIDES = Set.of( //
|
||||
"cryptomator.logDir", //
|
||||
"cryptomator.pluginDir", //
|
||||
|
||||
@@ -81,7 +81,7 @@ public class AdminPropertiesSetterTest {
|
||||
@Test
|
||||
@DisplayName("If system property for config path is null, skip do not load anything")
|
||||
void skipAdjustSystemPropertiesOnUndefinedProperty() {
|
||||
Assertions.assertNull(System.getProperty("cryptomator.adminConfig"));
|
||||
Assertions.assertNull(System.getProperty("cryptomator.adminConfigPath"));
|
||||
|
||||
try (var adminPropSetterMock = mockStatic(AdminPropertiesSetter.class)) {
|
||||
adminPropSetterMock.when(AdminPropertiesSetter::adjustSystemProperties).thenCallRealMethod();
|
||||
|
||||
Reference in New Issue
Block a user