This is an automated email from the ASF dual-hosted git repository.

jerryshao pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/gravitino.git


The following commit(s) were added to refs/heads/main by this push:
     new fe15450980 [#13848] test: Fix TableFormatOutputIT properties and tag 
IcebergRESTAsyncPurgeIT as docker test (#13849)
fe15450980 is described below

commit fe154509807afdda8a2833eaa2b8eaf471decbc5
Author: eye-gu <[email protected]>
AuthorDate: Tue Nov 10 11:14:28 2026 +0800

    [#13848] test: Fix TableFormatOutputIT properties and tag 
IcebergRESTAsyncPurgeIT as docker test (#13849)
    
    ### What changes were proposed in this pull request?
    
    - `TableFormatOutputIT`: align `jdbc-database` with the database in
    `jdbc-url` (`mydb`), and add `verify-on-create=false`, so the catalog
    create is accepted again after #12938's database-name validation and
    #13767's create-time reachability probe. The test only checks CLI table
    output and uses a fake host deliberately.
    - `IcebergRESTAsyncPurgeIT`: add the missing
    `@Tag("gravitino-docker-test")` so it is skipped on Docker-less
    machines, consistent with other container-based ITs in the module.
    
    ### Why are the changes needed?
    
    A plain local `./gradlew build` fails at `:clients:cli:test` (the test
    JVM exits 255, masking the real error) and at
    `:iceberg:iceberg-rest-server:test`. See #13848 for details.
    
    Fix: #13848
    
    ### Does this PR introduce _any_ user-facing change?
    
    No. Test-only changes.
    
    ### How was this patch tested?
    
    - `./gradlew :clients:cli:test`: 512 tests, 0 failures (including
    `TableFormatOutputIT`).
    - `./gradlew :iceberg:iceberg-rest-server:test` without Docker: BUILD
    SUCCESSFUL, `IcebergRESTAsyncPurgeIT` excluded via the tag.
    
    ---------
    
    Co-authored-by: Jerry Shao <[email protected]>
    Co-authored-by: Jerry Shao <[email protected]>
---
 .../apache/gravitino/cli/integration/test/TableFormatOutputIT.java    | 4 ++--
 .../gravitino/iceberg/integration/test/IcebergAuthorizationIT.java    | 2 ++
 .../gravitino/iceberg/integration/test/IcebergRESTAsyncPurgeIT.java   | 2 ++
 3 files changed, 6 insertions(+), 2 deletions(-)

diff --git 
a/clients/cli/src/test/java/org/apache/gravitino/cli/integration/test/TableFormatOutputIT.java
 
b/clients/cli/src/test/java/org/apache/gravitino/cli/integration/test/TableFormatOutputIT.java
index bca9e960ff..98138e00df 100644
--- 
a/clients/cli/src/test/java/org/apache/gravitino/cli/integration/test/TableFormatOutputIT.java
+++ 
b/clients/cli/src/test/java/org/apache/gravitino/cli/integration/test/TableFormatOutputIT.java
@@ -58,7 +58,7 @@ public class TableFormatOutputIT extends BaseIT {
       commandArg(GravitinoOptions.PROVIDER),
       "postgres",
       commandArg(GravitinoOptions.PROPERTIES),
-      
"jdbc-url=jdbc:postgresql://postgresql-host/mydb,jdbc-user=user,jdbc-password=password,jdbc-database=db,jdbc-driver=org.postgresql.Driver",
+      
"jdbc-url=jdbc:postgresql://postgresql-host/mydb,jdbc-user=user,jdbc-password=password,jdbc-database=mydb,jdbc-driver=org.postgresql.Driver,verify-on-create=false",
       commandArg(GravitinoOptions.URL),
       gravitinoUrl
     };
@@ -74,7 +74,7 @@ public class TableFormatOutputIT extends BaseIT {
       commandArg(GravitinoOptions.PROVIDER),
       "postgres",
       commandArg(GravitinoOptions.PROPERTIES),
-      
"jdbc-url=jdbc:postgresql://postgresql-host/mydb,jdbc-user=user,jdbc-password=password,jdbc-database=db,jdbc-driver=org.postgresql.Driver",
+      
"jdbc-url=jdbc:postgresql://postgresql-host/mydb,jdbc-user=user,jdbc-password=password,jdbc-database=mydb,jdbc-driver=org.postgresql.Driver,verify-on-create=false",
       commandArg(GravitinoOptions.URL),
       gravitinoUrl,
       commandArg(GravitinoOptions.COMMENT),
diff --git 
a/iceberg/iceberg-rest-server/src/test/java/org/apache/gravitino/iceberg/integration/test/IcebergAuthorizationIT.java
 
b/iceberg/iceberg-rest-server/src/test/java/org/apache/gravitino/iceberg/integration/test/IcebergAuthorizationIT.java
index 8318311696..d87db501e4 100644
--- 
a/iceberg/iceberg-rest-server/src/test/java/org/apache/gravitino/iceberg/integration/test/IcebergAuthorizationIT.java
+++ 
b/iceberg/iceberg-rest-server/src/test/java/org/apache/gravitino/iceberg/integration/test/IcebergAuthorizationIT.java
@@ -60,6 +60,7 @@ import org.apache.spark.sql.SparkSession;
 import org.junit.jupiter.api.AfterAll;
 import org.junit.jupiter.api.Assertions;
 import org.junit.jupiter.api.BeforeAll;
+import org.junit.jupiter.api.Tag;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
@@ -70,6 +71,7 @@ import org.slf4j.LoggerFactory;
  * user for Spark SQL, doesn't have privileges by default. You could use Spark 
SQL to try to do the
  * operation and use Gravitino client to grant privilege or check the test 
result.
  */
+@Tag("gravitino-docker-test")
 public class IcebergAuthorizationIT extends BaseIT {
 
   private static final Logger LOG = 
LoggerFactory.getLogger(IcebergAuthorizationIT.class);
diff --git 
a/iceberg/iceberg-rest-server/src/test/java/org/apache/gravitino/iceberg/integration/test/IcebergRESTAsyncPurgeIT.java
 
b/iceberg/iceberg-rest-server/src/test/java/org/apache/gravitino/iceberg/integration/test/IcebergRESTAsyncPurgeIT.java
index f798871b57..6bb400da9e 100644
--- 
a/iceberg/iceberg-rest-server/src/test/java/org/apache/gravitino/iceberg/integration/test/IcebergRESTAsyncPurgeIT.java
+++ 
b/iceberg/iceberg-rest-server/src/test/java/org/apache/gravitino/iceberg/integration/test/IcebergRESTAsyncPurgeIT.java
@@ -55,6 +55,7 @@ import org.awaitility.Awaitility;
 import org.junit.jupiter.api.AfterAll;
 import org.junit.jupiter.api.Assertions;
 import org.junit.jupiter.api.BeforeAll;
+import org.junit.jupiter.api.Tag;
 import org.junit.jupiter.api.Test;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
@@ -71,6 +72,7 @@ import org.slf4j.LoggerFactory;
  * {@code file://} warehouse, since cleanup jobs are keyed by catalog id and 
the files must be
  * visible on disk.
  */
+@Tag("gravitino-docker-test")
 public class IcebergRESTAsyncPurgeIT extends BaseIT {
 
   private static final Logger LOG = 
LoggerFactory.getLogger(IcebergRESTAsyncPurgeIT.class);

Reply via email to