From dc3958ca5469825fa695ce7ce37d4441d68b39b7 Mon Sep 17 00:00:00 2001 From: Chris Green Date: Wed, 1 Apr 2026 08:26:35 -0500 Subject: [PATCH] pool: Fix properties tests to use the correct property Motivation: While only tests, these files use an obsolete property name `pool.hotfile.monitoring.enable`, and could cause/perpetuate confusion and errors in user configuration. Modification: `pool.hotfile.monitoring.enable` changed to `pool.hotfile.replication.enable` in all cases. Result: Property name use in tests now comports with user applications. Target: master Request: 11.2 Patch: https://rb.dcache.org/r/14654/diff/raw Closes: Requires-notes: yes Requires-book: no Acked-by: Anastasiia Chub --- .../java/org/dcache/pool/classic/HotfileMonitoringTest.java | 4 ++-- .../org/dcache/pool/classic/hotfile-monitoring-test.xml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/dcache/src/test/java/org/dcache/pool/classic/HotfileMonitoringTest.java b/modules/dcache/src/test/java/org/dcache/pool/classic/HotfileMonitoringTest.java index 507f70e6356..88376ff7c11 100644 --- a/modules/dcache/src/test/java/org/dcache/pool/classic/HotfileMonitoringTest.java +++ b/modules/dcache/src/test/java/org/dcache/pool/classic/HotfileMonitoringTest.java @@ -17,7 +17,7 @@ public class HotfileMonitoringTest { @RunWith(SpringJUnit4ClassRunner.class) @ContextConfiguration(locations = { "classpath:org/dcache/pool/classic/hotfile-monitoring-test.xml"}) - @TestPropertySource(properties = "pool.hotfile.monitoring.enable=true") + @TestPropertySource(properties = "pool.hotfile.replication.enable=true") public static class Enabled { @Autowired @@ -32,7 +32,7 @@ public void testEnabled() { @RunWith(SpringJUnit4ClassRunner.class) @ContextConfiguration(locations = { "classpath:org/dcache/pool/classic/hotfile-monitoring-test.xml"}) - @TestPropertySource(properties = "pool.hotfile.monitoring.enable=false") + @TestPropertySource(properties = "pool.hotfile.replication.enable=false") public static class Disabled { @Autowired diff --git a/modules/dcache/src/test/resources/org/dcache/pool/classic/hotfile-monitoring-test.xml b/modules/dcache/src/test/resources/org/dcache/pool/classic/hotfile-monitoring-test.xml index 907290f57d1..af50a5851c1 100644 --- a/modules/dcache/src/test/resources/org/dcache/pool/classic/hotfile-monitoring-test.xml +++ b/modules/dcache/src/test/resources/org/dcache/pool/classic/hotfile-monitoring-test.xml @@ -15,7 +15,7 @@ + value="#{ ${pool.hotfile.replication.enable} ? migration : null }"/>