Skip to content

pool: Fix properties tests to use the correct property#8060

Merged
mksahakyan merged 1 commit into11.2from
fix/11.2/RB-14654
Apr 2, 2026
Merged

pool: Fix properties tests to use the correct property#8060
mksahakyan merged 1 commit into11.2from
fix/11.2/RB-14654

Conversation

@greenc-FNAL
Copy link
Copy Markdown
Contributor

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

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
Copilot AI review requested due to automatic review settings April 1, 2026 21:19
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the pool hotfile monitoring test configuration to use the current pool property name, aligning test setup with the production Spring wiring and avoiding confusion from an obsolete property key.

Changes:

  • Replaced pool.hotfile.monitoring.enable with pool.hotfile.replication.enable in the Spring test XML.
  • Updated @TestPropertySource values in HotfileMonitoringTest to set the correct property for enabled/disabled scenarios.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
modules/dcache/src/test/resources/org/dcache/pool/classic/hotfile-monitoring-test.xml Switches the SpEL/property-placeholder toggle to pool.hotfile.replication.enable.
modules/dcache/src/test/java/org/dcache/pool/classic/HotfileMonitoringTest.java Updates test property injection to match the new property name in both nested test classes.

@mksahakyan mksahakyan merged commit 4c74631 into 11.2 Apr 2, 2026
13 checks passed
@mksahakyan mksahakyan deleted the fix/11.2/RB-14654 branch April 2, 2026 07:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants