Ignored decommissionRegCenterFail_WithMappedRegCenter testcase [MOSIP-44916]#1351
Ignored decommissionRegCenterFail_WithMappedRegCenter testcase [MOSIP-44916]#1351dhanendra06 merged 1 commit intomosip:developfrom
Conversation
Signed-off-by: GOKULRAJ136 <110164849+GOKULRAJ136@users.noreply.github.com>
WalkthroughA test method in the registration center controller test class is marked as ignored by adding the Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
🧹 Nitpick comments (1)
admin/kernel-masterdata-service/src/test/java/io/mosip/kernel/masterdata/test/controller/RegistrationCenterControllerTest.java (1)
512-515: Add a reason to@Ignoreand reference the ticket.Disabling a test without context makes it easy to forget. Please include a descriptive reason (and ideally the JIRA ID) so future maintainers understand why this is skipped and when to re-enable it.
♻️ Suggested change
- `@Ignore` + `@Ignore`("MOSIP-44916: temporarily disabled - revisit once mapped reg-center decommission flow is fixed") `@Test` `@WithUserDetails`("global-admin") public void decommissionRegCenterFail_WithMappedRegCenter() throws Exception {Also consider tracking this with a follow-up issue so the ignored test does not become permanently dead code.
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@admin/kernel-masterdata-service/src/test/java/io/mosip/kernel/masterdata/test/controller/RegistrationCenterControllerTest.java` around lines 512 - 515, The `@Ignore` on the test method decommissionRegCenterFail_WithMappedRegCenter lacks a reason; update the annotation to include a concise explanation and reference to the tracking ticket (e.g., JIRA ID) so maintainers know why it's skipped and can find the follow-up (add the reason string inside `@Ignore`("...") next to the method decommissionRegCenterFail_WithMappedRegCenter and ensure the message mentions the ticket ID).
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Nitpick comments:
In
`@admin/kernel-masterdata-service/src/test/java/io/mosip/kernel/masterdata/test/controller/RegistrationCenterControllerTest.java`:
- Around line 512-515: The `@Ignore` on the test method
decommissionRegCenterFail_WithMappedRegCenter lacks a reason; update the
annotation to include a concise explanation and reference to the tracking ticket
(e.g., JIRA ID) so maintainers know why it's skipped and can find the follow-up
(add the reason string inside `@Ignore`("...") next to the method
decommissionRegCenterFail_WithMappedRegCenter and ensure the message mentions
the ticket ID).
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: 10ecafcf-c9be-477f-b817-5b26360ab0ff
📒 Files selected for processing (1)
admin/kernel-masterdata-service/src/test/java/io/mosip/kernel/masterdata/test/controller/RegistrationCenterControllerTest.java
Summary by CodeRabbit
Note: This is an internal change with no impact on end-user functionality.