Skip to content

World's most powerful open data catalog for building a high-performance, geo-distributed and federated metadata lake.

[#13848] test: Fix TableFormatOutputIT properties and tag IcebergRESTAsyncPurgeIT as docker test (#13849)

eye-gufe154509807a
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);