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

lzljs3620320 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/paimon.git


The following commit(s) were added to refs/heads/master by this push:
     new a441726ef9 [test] Rename to RESTSimpleTableTest and RESTCatalogTest
a441726ef9 is described below

commit a441726ef92b6c5d74a3557a4ac5bd5a19e0e3cd
Author: JingsongLi <[email protected]>
AuthorDate: Mon Mar 24 16:57:28 2025 +0800

    [test] Rename to RESTSimpleTableTest and RESTCatalogTest
---
 .../{RESTCatalogMockTest.java => MockRESTCatalogTest.java}     |  4 ++--
 .../MockRESTSimpleTableTest.java}                              | 10 +++-------
 .../rest/{RESTCatalogTestBase.java => RESTCatalogTest.java}    |  2 +-
 .../RESTSimpleTableTest.java}                                  | 10 ++++++----
 4 files changed, 12 insertions(+), 14 deletions(-)

diff --git 
a/paimon-core/src/test/java/org/apache/paimon/rest/RESTCatalogMockTest.java 
b/paimon-core/src/test/java/org/apache/paimon/rest/MockRESTCatalogTest.java
similarity index 98%
rename from 
paimon-core/src/test/java/org/apache/paimon/rest/RESTCatalogMockTest.java
rename to 
paimon-core/src/test/java/org/apache/paimon/rest/MockRESTCatalogTest.java
index 65770bdecb..69ea8a5185 100644
--- a/paimon-core/src/test/java/org/apache/paimon/rest/RESTCatalogMockTest.java
+++ b/paimon-core/src/test/java/org/apache/paimon/rest/MockRESTCatalogTest.java
@@ -51,10 +51,9 @@ import static 
org.assertj.core.api.Assertions.assertThatThrownBy;
 import static org.junit.jupiter.api.Assertions.assertEquals;
 
 /** Test REST Catalog on Mocked REST server. */
-class RESTCatalogMockTest extends RESTCatalogTestBase {
+class MockRESTCatalogTest extends RESTCatalogTest {
 
     private RESTCatalogServer restCatalogServer;
-    private final String initToken = "init_token";
     private final String serverDefineHeaderName = "test-header";
     private final String serverDefineHeaderValue = "test-value";
     private String dataPath;
@@ -66,6 +65,7 @@ class RESTCatalogMockTest extends RESTCatalogTestBase {
     public void setUp() throws Exception {
         super.setUp();
         dataPath = warehouse;
+        String initToken = "init_token";
         this.authProvider = new BearTokenAuthProvider(initToken);
         this.authMap =
                 ImmutableMap.of(
diff --git 
a/paimon-core/src/test/java/org/apache/paimon/table/SimpleTableInRESTCatalogMockTest.java
 b/paimon-core/src/test/java/org/apache/paimon/rest/MockRESTSimpleTableTest.java
similarity index 87%
rename from 
paimon-core/src/test/java/org/apache/paimon/table/SimpleTableInRESTCatalogMockTest.java
rename to 
paimon-core/src/test/java/org/apache/paimon/rest/MockRESTSimpleTableTest.java
index 2e603af51d..0895f0a3b8 100644
--- 
a/paimon-core/src/test/java/org/apache/paimon/table/SimpleTableInRESTCatalogMockTest.java
+++ 
b/paimon-core/src/test/java/org/apache/paimon/rest/MockRESTSimpleTableTest.java
@@ -16,15 +16,11 @@
  * limitations under the License.
  */
 
-package org.apache.paimon.table;
+package org.apache.paimon.rest;
 
 import org.apache.paimon.catalog.CatalogContext;
 import org.apache.paimon.options.CatalogOptions;
 import org.apache.paimon.options.Options;
-import org.apache.paimon.rest.RESTCatalog;
-import org.apache.paimon.rest.RESTCatalogInternalOptions;
-import org.apache.paimon.rest.RESTCatalogOptions;
-import org.apache.paimon.rest.RESTCatalogServer;
 import org.apache.paimon.rest.auth.AuthProvider;
 import org.apache.paimon.rest.auth.AuthProviderEnum;
 import org.apache.paimon.rest.auth.BearTokenAuthProvider;
@@ -35,8 +31,8 @@ import 
org.apache.paimon.shade.guava30.com.google.common.collect.ImmutableMap;
 import java.io.IOException;
 import java.util.UUID;
 
-/** test table in rest catalog. */
-public class SimpleTableInRESTCatalogMockTest extends 
SimpleTableInRESTCatalogTestBase {
+/** Base simple table test in mock rest catalog. */
+public class MockRESTSimpleTableTest extends RESTSimpleTableTest {
 
     @Override
     protected RESTCatalog createRESTCatalog() throws IOException {
diff --git 
a/paimon-core/src/test/java/org/apache/paimon/rest/RESTCatalogTestBase.java 
b/paimon-core/src/test/java/org/apache/paimon/rest/RESTCatalogTest.java
similarity index 99%
rename from 
paimon-core/src/test/java/org/apache/paimon/rest/RESTCatalogTestBase.java
rename to paimon-core/src/test/java/org/apache/paimon/rest/RESTCatalogTest.java
index 3d507a680b..f7d734e05c 100644
--- a/paimon-core/src/test/java/org/apache/paimon/rest/RESTCatalogTestBase.java
+++ b/paimon-core/src/test/java/org/apache/paimon/rest/RESTCatalogTest.java
@@ -87,7 +87,7 @@ import static org.junit.jupiter.api.Assertions.assertNull;
 import static org.junit.jupiter.api.Assertions.assertThrows;
 
 /** Base test class for {@link RESTCatalog}. */
-public abstract class RESTCatalogTestBase extends CatalogTestBase {
+public abstract class RESTCatalogTest extends CatalogTestBase {
 
     protected ConfigResponse config;
     protected Options options = new Options();
diff --git 
a/paimon-core/src/test/java/org/apache/paimon/table/SimpleTableInRESTCatalogTestBase.java
 b/paimon-core/src/test/java/org/apache/paimon/rest/RESTSimpleTableTest.java
similarity index 94%
rename from 
paimon-core/src/test/java/org/apache/paimon/table/SimpleTableInRESTCatalogTestBase.java
rename to 
paimon-core/src/test/java/org/apache/paimon/rest/RESTSimpleTableTest.java
index c550ffe2af..f06d74a6ac 100644
--- 
a/paimon-core/src/test/java/org/apache/paimon/table/SimpleTableInRESTCatalogTestBase.java
+++ b/paimon-core/src/test/java/org/apache/paimon/rest/RESTSimpleTableTest.java
@@ -16,17 +16,18 @@
  * limitations under the License.
  */
 
-package org.apache.paimon.table;
+package org.apache.paimon.rest;
 
 import org.apache.paimon.catalog.Identifier;
 import org.apache.paimon.fs.local.LocalFileIO;
 import org.apache.paimon.options.Options;
-import org.apache.paimon.rest.RESTCatalog;
 import org.apache.paimon.schema.Schema;
 import org.apache.paimon.schema.SchemaChange;
 import org.apache.paimon.schema.SchemaManager;
 import org.apache.paimon.schema.SchemaUtils;
 import org.apache.paimon.schema.TableSchema;
+import org.apache.paimon.table.FileStoreTable;
+import org.apache.paimon.table.SimpleTableTestBase;
 import org.apache.paimon.types.RowType;
 
 import org.junit.jupiter.api.BeforeEach;
@@ -41,8 +42,9 @@ import java.util.function.Consumer;
 import static org.apache.paimon.CoreOptions.BUCKET;
 import static org.apache.paimon.CoreOptions.BUCKET_KEY;
 
-/** base test table in rest catalog. */
-public abstract class SimpleTableInRESTCatalogTestBase extends 
SimpleTableTestBase {
+/** Base simple table test in rest catalog. */
+public abstract class RESTSimpleTableTest extends SimpleTableTestBase {
+
     protected RESTCatalog restCatalog;
     protected String dataPath;
 

Reply via email to