-
Notifications
You must be signed in to change notification settings - Fork 581
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BE: NMS-16536, Provisioning fails when category has been deleted #7463
base: foundation-2023
Are you sure you want to change the base?
Conversation
smunir-onms
commented
Oct 8, 2024
- https://opennms.atlassian.net/browse/NMS-16536
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Were you able to reproduce this issue on foundation-2023 without any changes to the code ?
…d to avoid frequent reloading
Screencast from 10-17-2024 01:42:44 AM.webm |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Check if you can add a test case for this in ProvisionerIT using actual Daos instead of mocks.
...s-provisiond/src/main/java/org/opennms/netmgt/provision/service/DefaultProvisionService.java
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please resolve file permissions 100644 → 100755.
and try to add a test case to validate the scenario with actual Daos
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The last three asserts should also be passed for a complete scenario, there are some IT DAO limitations;
When m_provisionService.updateNodeAttributes(n); is called from the test class
the last category with ID 3 was deleted
the related association was also deleted
new category created with the same name with new ID 4
new association, with the same node and new category, going to be created
after this action, the category was updated with the previous ID 3 in the association
the category dao was also updated with a duplicate category with old ID 3
Due to this behavior, the last three asserts failed.
@smunir-onms can you merge latest |
Done. |