NMS-19448: Trapd Config to DB: Migrate trapd-configuration.xml to CM#8274
Open
christianpape wants to merge 6 commits intodevelopfrom
Open
NMS-19448: Trapd Config to DB: Migrate trapd-configuration.xml to CM#8274christianpape wants to merge 6 commits intodevelopfrom
christianpape wants to merge 6 commits intodevelopfrom
Conversation
Contributor
christianpape
commented
Feb 4, 2026
- JIRA: https://opennms.atlassian.net/browse/NMS-19448
Contributor
There was a problem hiding this comment.
Pull request overview
This PR migrates trapd configuration from XML file-based configuration to the Configuration Management (CM) system in the database, supporting the broader effort to centralize configuration management.
Changes:
- Introduced
TrapdConfigDaoandDefaultTrapdConfigDaoto manage trapd configuration through CM - Refactored
TrapdConfigFactoryto use DAO instead of direct file reading - Added test infrastructure with
NullEventForwarderand updated test contexts across the codebase
Reviewed changes
Copilot reviewed 109 out of 109 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| opennms-dao-api/src/main/java/org/opennms/netmgt/dao/api/TrapdConfigDao.java | Defines DAO interface for trapd configuration |
| opennms-dao/src/main/java/org/opennms/netmgt/dao/jaxb/DefaultTrapdConfigDao.java | Implements DAO using CM service |
| opennms-config/src/main/java/org/opennms/netmgt/config/TrapdConfigFactory.java | Refactored to use DAO instead of file reading |
| opennms-config-jaxb/src/main/java/org/opennms/netmgt/config/trapd/TrapdConfiguration.java | Updated field naming from underscore prefix to camelCase |
| opennms-config-jaxb/src/main/java/org/opennms/netmgt/config/trapd/Snmpv3User.java | Updated field naming from underscore prefix to camelCase |
| core/test-api/services/src/main/java/org/opennms/netmgt/config/mock/NullEventForwarder.java | Added test mock for EventForwarder |
| features/config/upgrade/src/main/resources/changelog-cm/36.0.0/changelog-cm.xml | Added CM schema registration for trapd configuration |
| opennms-dao/src/main/resources/META-INF/opennms/applicationContext-dao.xml | Registered trapd DAO beans and services |
| Multiple test files | Updated test contexts to include nullEventForwarder configuration |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
features/events/daemon/src/test/java/org/opennms/netmgt/eventd/EventUtilIT.java
Outdated
Show resolved
Hide resolved
.../thresholding/impl/src/test/java/org/opennms/netmgt/threshd/CollectionResourceWrapperIT.java
Outdated
Show resolved
Hide resolved
…s/netmgt/threshd/CollectionResourceWrapperIT.java Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
…/EventUtilIT.java Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.