Repository navigation
Fix the nightly DataProductResourceIT forged-FQN assertion - #39589
Conversation
EntityServiceBase.update wraps every failure in OpenMetadataException, so the server's 400 InvalidRequestException is on the cause. The test asserted the unwrapped type and failed on every parallel lane of the nightly; it was added in #39252, whose Java IT lanes were skipped.
❌ PR checklist incompleteThis PR cannot be merged until the following are addressed on its linked issue:
The fields live on the linked issue in the Shipping project (open the issue → right sidebar → Projects). After you set them, re-run this check (or push a commit) — issue/project changes do not re-trigger it automatically. Maintainers can bypass this check by adding the |
Code Review ✅ Approved 🟢 Low riskThis changes only an integration-test assertion to verify the wrapped 400 cause; production behavior and interfaces remain unchanged. Updates the VerificationRules No rules evaluated Functional validation Not enabledAuto-approval Not enabledFor more verification details, comment OptionsDisplay: compact → Showing compact verification results. Comment with these commands to change the behavior for this request:
Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source |
Describe your changes:
Fixes the one Java failure in the parallel IT lanes of the nightly. It fails on all three setups, in both the scheduled run 46786795034 and the manual re-run 46857713481.
DataProductResourceIT.test_forgedDomainFqnCannotBypassTheDomainRulecame in with #39252, whose Java IT lanes were skipped, so the nightly was the first run of it. The server rejects the forged FQN correctly with a 400. ButEntityServiceBase.updatewraps every failure inOpenMetadataException, soassertThrows(InvalidRequestException.class, …)could never match.The test now asserts the wrapped
OpenMetadataException, checks that its cause is theInvalidRequestException, and keeps the message check.EventSubscriptionResourceITasserts a rejected update the same way.The nightly's other Java reds need no code change here. The global-state reds were fixed by #39394. Sonar's
Not authorizedcomes from a staleSONAR_TOKENsecret.Type of change:
Tests:
Integration tests
DataProductResourceIT#test_forgedDomainFqnCannotBypassTheDomainRulepasses locally on MySQL + Elasticsearch. The server log shows the forged PATCH rejected with 400.Checklist:
Fixes <issue-number>: <short explanation>(no tracking issue)🤖 Generated with Claude Code