Skip to content

Test the HBase datastore controllers over HTTP - #479

Merged
em3s merged 1 commit into
mainfrom
test/hbase-datastore-e2e-harness
Aug 6, 2026
Merged

em3s merged 1 commit into
mainfrom
test/hbase-datastore-e2e-harness

Conversation

@em3s

@em3s em3s commented Aug 6, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Nothing under /graph/v3/datastore/hbase was reachable from a test — the controllers only exist under actionbase.datastore.type=HBASE and the test profile runs on memory. This adds the harness and uses it to cover #477 and #478.

Stacked on #478. Relates to #370

Changes

  • HBaseDatastoreE2ETestBase: flips the datastore type and takes over the HBaseAdmin bean with a mock
  • Add mockk to :server test deps — HBaseAdmin is final
  • Cover both reference endpoints, plus the teardown guard on v3 and on the v2 devtools controller

Proving a rejection needs the admin call stubbed with a publisher that fails on subscribe rather than left unstubbed. The service builds the call before the guard runs — an argument to then is evaluated eagerly — so an unstubbed mock reports a failure that isn't one.

How to Test

./gradlew :server:test --tests "*DatastoreTableReferencesE2ETest*" --tests "*HBaseAdminTeardownGuardE2ETest*"

AI Assistance

  • This PR was written largely with AI assistance.
    • Tool / model: Claude Code (Opus 5)

@dosubot dosubot Bot added size:XS This PR changes 0-9 lines, ignoring generated files. enhancement New feature or request labels Aug 6, 2026
@em3s
em3s force-pushed the feat/datastore-table-references-api branch from 2eb61fd to a3b339f Compare August 6, 2026 08:45
@em3s
em3s force-pushed the test/hbase-datastore-e2e-harness branch from 15b31b5 to ba2bd9a Compare August 6, 2026 08:45
@em3s
em3s force-pushed the feat/datastore-table-references-api branch 2 times, most recently from 0cf9251 to 7ec9edb Compare August 6, 2026 09:05
@em3s
em3s force-pushed the test/hbase-datastore-e2e-harness branch from ba2bd9a to 5ca17d3 Compare August 6, 2026 09:06
@em3s
em3s force-pushed the feat/datastore-table-references-api branch from 7ec9edb to 61ad0f7 Compare August 6, 2026 09:10
@em3s
em3s force-pushed the test/hbase-datastore-e2e-harness branch from 5ca17d3 to 98808b3 Compare August 6, 2026 09:11
@em3s
em3s force-pushed the feat/datastore-table-references-api branch 2 times, most recently from 3f74539 to 4991539 Compare August 6, 2026 09:17
@em3s
em3s force-pushed the test/hbase-datastore-e2e-harness branch from 98808b3 to d8ed9a1 Compare August 6, 2026 09:18
Base automatically changed from feat/datastore-table-references-api to main August 6, 2026 09:23
@dosubot dosubot Bot added size:L This PR changes 100-499 lines, ignoring generated files. and removed size:XS This PR changes 0-9 lines, ignoring generated files. labels Aug 6, 2026
Nothing under `/graph/v3/datastore/hbase` was reachable from a test. The controllers only exist
under `actionbase.datastore.type=HBASE` and the test profile runs on `memory`, so the whole package
had no web-layer coverage.

`HBaseDatastoreE2ETestBase` flips the property and takes over the `HBaseAdmin` bean with a mock.
Proving a rejection needs the admin call stubbed with a publisher that fails on subscribe, not left
unstubbed: the service builds the call before the guard runs, since an argument to `then` is
evaluated eagerly.

Covers both reference endpoints and the teardown guard on v3 and on the v2 devtools controller.
@em3s
em3s force-pushed the test/hbase-datastore-e2e-harness branch from d8ed9a1 to 58e5553 Compare August 6, 2026 09:25
@dosubot dosubot Bot added size:XS This PR changes 0-9 lines, ignoring generated files. and removed size:L This PR changes 100-499 lines, ignoring generated files. labels Aug 6, 2026
@em3s

em3s commented Aug 6, 2026

Copy link
Copy Markdown
Contributor Author

Optimistic

@em3s
em3s merged commit 403fd4a into main Aug 6, 2026
2 checks passed
@em3s
em3s deleted the test/hbase-datastore-e2e-harness branch August 6, 2026 09:33
@em3s em3s self-assigned this Aug 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request size:XS This PR changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant