Skip to content

Commit cd5e116

Browse files
committed
test(config): allowlist storage.properties in parity gate
StorageConfig.properties is List<PropertyConfig> and is parsed manually via StorageConfig.readProperties(); ConfigBeanFactory cannot bind list-of-object fields so the hoconKeysAreBound gate reports it as an orphan. Add it to STORAGE_HOCON_ORPHANS with the rationale comment.
1 parent 71f6ce6 commit cd5e116

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

common/src/test/java/org/tron/core/config/args/ConfigParityGateTest.java

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,13 @@ private static final class Section {
8282
"witnesses" // 27 standby witness nodes; bean ships empty list
8383
);
8484

85+
// properties: List<PropertyConfig> parsed manually via StorageConfig.readProperties();
86+
// ConfigBeanFactory cannot bind list-of-object fields, so the gate sees it as unbound.
87+
private static final Set<String> STORAGE_HOCON_ORPHANS =
88+
ConfigParityCheck.allowlist(
89+
"properties" // manually parsed by StorageConfig.readProperties()
90+
);
91+
8592
private static final Set<String> NODE_HOCON_ORPHANS =
8693
ConfigParityCheck.allowlist(
8794
"isOpenFullTcpDisconnect", // normalized to bean field openFullTcpDisconnect
@@ -132,7 +139,7 @@ private static final class Section {
132139
s.add(new Section("rate.limiter", RateLimiterConfig.class,
133140
empty, empty, empty));
134141
s.add(new Section("storage", StorageConfig.class,
135-
empty, empty, empty));
142+
STORAGE_HOCON_ORPHANS, empty, empty));
136143
s.add(new Section("vm", VmConfig.class,
137144
empty, empty, empty));
138145
SECTIONS = Collections.unmodifiableList(s);

0 commit comments

Comments
 (0)