Skip to content

test: add ApiaryGlueSync coverage baseline#136

Merged
jamespfaulkner merged 2 commits into
mainfrom
test/EGDL-8244/coverage-baseline
Jun 19, 2026
Merged

test: add ApiaryGlueSync coverage baseline#136
jamespfaulkner merged 2 commits into
mainfrom
test/EGDL-8244/coverage-baseline

Conversation

@jamespfaulkner

Copy link
Copy Markdown
Contributor

Summary

  • Adds test coverage for ApiaryGlueSync event handlers that was previously missing: onCreateDatabase (already-exists path), onCreateTable (already-exists path),
    onAlterTable (entity-not-found path), onAlterPartition, onAddPartition (already-exists path), onDropTable, onDropPartition, and a single test asserting all handlers are
    no-ops when event.getStatus() == false
  • Tests are adapted from the feat/EGDL-8244/improved-observability branch to compile against mainMetricService.recordEvent() does not exist here, so those verifications
    are omitted; incrementCounter and Glue API call verifications are retained
  • Intended to be merged before feat/EGDL-8244/improved-observability so the diff on that PR shows only production code changes alongside their corresponding new tests

Test plan

  • mvn test -pl hive-event-listeners/apiary-gluesync-listener passes on this branch
  • Confirm no recordEvent references remain in the test file (that method does not exist on main)
  • Merge this branch before feat/EGDL-8244/improved-observability

🤖 Generated with Claude Code

jamespfaulkner and others added 2 commits June 19, 2026 08:58
Add tests for previously uncovered paths in all 8 event handlers:
recovery paths (AlreadyExistsException/EntityNotFoundException), onDropTable
(happy path and not-found), onDropPartition (happy path), onAddPartition
(happy path), onAlterPartition (happy path and not-found recovery),
onAlterIcebergTable_RenameTableSkipsRenameOperation, failure metric recording,
throwExceptions=true rethrow, and a single test covering getStatus()==false
across all handlers.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@jamespfaulkner jamespfaulkner marked this pull request as ready for review June 19, 2026 08:15
@jamespfaulkner jamespfaulkner requested a review from a team as a code owner June 19, 2026 08:15
@jamespfaulkner jamespfaulkner merged commit 50fa2b9 into main Jun 19, 2026
1 check passed
@jamespfaulkner jamespfaulkner deleted the test/EGDL-8244/coverage-baseline branch June 19, 2026 09:07
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.

2 participants