TimothyDing opened a new issue, #10362:
URL: https://github.com/apache/gravitino/issues/10362

   ### Describe the subtask
   
   ### Describe the feature
   
   Add cloud-based integration tests for the `catalog-jdbc-hologres` module. 
Since Hologres is a cloud service hosted on Alibaba Cloud and cannot be started 
locally via Docker, the integration tests should connect to a real Hologres 
instance and be controlled by environment variables.
   
   ### Motivation
   
   The Hologres JDBC catalog currently only has unit tests (SQL generation, 
type conversion, etc.) but lacks end-to-end integration tests that verify the 
full Gravitino stack works correctly with a real Hologres instance. Other JDBC 
catalogs like OceanBase already have comprehensive integration tests.
   
   ### Describe the solution
   
   - Use `@EnabledIf` with a static method `hologresIsConfigured()` to enable 
tests only when all required environment variables are set 
(`GRAVITINO_HOLOGRES_JDBC_URL`, `GRAVITINO_HOLOGRES_USERNAME`, 
`GRAVITINO_HOLOGRES_PASSWORD`), following the same pattern as 
`GravitinoVirtualFileSystemOSSIT`.
   - Create `CatalogHologresIT` extending `BaseIT` with tests covering: schema 
CRUD, table CRUD, type conversion, distribution, table properties, primary key, 
column default values, and schema comments.
   - Create `HologresService` helper class for direct JDBC verification.
   - Add a `README.md` to the module with setup instructions.
   
   ### Parent issue
   
   https://github.com/apache/gravitino/issues/9886


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to