You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@polaris.apache.org by "venkateshwaracholan (via GitHub)" <gi...@apache.org> on 2026/06/22 15:50:34 UTC
[PR] Add unit tests for HiveFederatedCatalogFactory [polaris]
venkateshwaracholan opened a new pull request, #4852:
URL: https://github.com/apache/polaris/pull/4852
## Summary
This change adds unit test coverage for `HiveFederatedCatalogFactory` in the `polaris-extensions-federation-hive` module.
A new `HiveFederatedCatalogFactoryTest` has been added to verify the factory's behavior in isolation, without requiring a running Hive environment or any external infrastructure. The tests focus on validating the factory's core behavior, including authentication handling, catalog creation, and expected exception paths.
Specifically, the test suite verifies that unsupported authentication types are rejected with the appropriate exception, confirms that the supported `IMPLICIT` authentication flow successfully creates a catalog, and ensures that `createGenericCatalog()` continues to throw `UnsupportedOperationException` as designed. Constructor initialization behavior is also covered.
The tests are implemented as lightweight unit tests using Mockito mocks, making them fast, reliable, and independent of external services.
## Changes
* Added `HiveFederatedCatalogFactoryTest`.
* Added coverage for unsupported authentication type validation.
* Added coverage for successful catalog creation using `IMPLICIT` authentication.
* Added verification that `createGenericCatalog()` throws `UnsupportedOperationException`.
* Added constructor initialization coverage.
* No production code changes.
## Checklist
- [ ] ๐ก๏ธ Don't disclose security issues! (contact security@apache.org)
- [ ] ๐ Clearly explained why the changes are needed, or linked related issues: Fixes #
- [ ] ๐งช Added/updated tests with good coverage, or manually tested (and explained how)
- [ ] ๐ก Added comments for complex logic
- [ ] ๐งพ Updated `CHANGELOG.md` (if needed)
- [ ] ๐ Updated documentation in `site/content/in-dev/unreleased` (if needed)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@polaris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Add unit tests for HiveFederatedCatalogFactory [polaris]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] closed pull request #4852: Add unit tests for HiveFederatedCatalogFactory
URL: https://github.com/apache/polaris/pull/4852
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@polaris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Add unit tests for HiveFederatedCatalogFactory [polaris]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #4852:
URL: https://github.com/apache/polaris/pull/4852#issuecomment-5086623650
This PR is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@polaris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org