PluginConfigFactory: reload also outdated secure store
With refresh=true, the getFromGerritConfig method only checked if gerrit.config was outdated and only reloaded the gerrit.config. Reloading of an outdated secure.config didn't work. If plugin stored a part of its configuration in the secure.config, like the replication plugin did, then there was no way to reload a changed username/password, without restarting Gerrit server. Change-Id: I57b6dd4ba367fb23aa20dea3f5ac36d8fcf52e26
This commit is contained in:
@@ -139,5 +139,15 @@ public class UpgradeFrom2_0_xTest extends InitTestCase {
|
||||
public Iterable<EntryKey> list() {
|
||||
throw new UnsupportedOperationException("not used by tests");
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isOutdated() {
|
||||
throw new UnsupportedOperationException("not used by tests");
|
||||
}
|
||||
|
||||
@Override
|
||||
public void reload() {
|
||||
throw new UnsupportedOperationException("not used by tests");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user