File tree Expand file tree Collapse file tree 4 files changed +12
-14
lines changed
paimon-core/src/test/java/org/apache/paimon/rest Expand file tree Collapse file tree 4 files changed +12
-14
lines changed Original file line number Diff line number Diff line change 5151import static org .junit .jupiter .api .Assertions .assertEquals ;
5252
5353/** Test REST Catalog on Mocked REST server. */
54- class RESTCatalogMockTest extends RESTCatalogTestBase {
54+ class MockRESTCatalogTest extends RESTCatalogTest {
5555
5656 private RESTCatalogServer restCatalogServer ;
57- private final String initToken = "init_token" ;
5857 private final String serverDefineHeaderName = "test-header" ;
5958 private final String serverDefineHeaderValue = "test-value" ;
6059 private String dataPath ;
@@ -66,6 +65,7 @@ class RESTCatalogMockTest extends RESTCatalogTestBase {
6665 public void setUp () throws Exception {
6766 super .setUp ();
6867 dataPath = warehouse ;
68+ String initToken = "init_token" ;
6969 this .authProvider = new BearTokenAuthProvider (initToken );
7070 this .authMap =
7171 ImmutableMap .of (
Original file line number Diff line number Diff line change 1616 * limitations under the License.
1717 */
1818
19- package org .apache .paimon .table ;
19+ package org .apache .paimon .rest ;
2020
2121import org .apache .paimon .catalog .CatalogContext ;
2222import org .apache .paimon .options .CatalogOptions ;
2323import org .apache .paimon .options .Options ;
24- import org .apache .paimon .rest .RESTCatalog ;
25- import org .apache .paimon .rest .RESTCatalogInternalOptions ;
26- import org .apache .paimon .rest .RESTCatalogOptions ;
27- import org .apache .paimon .rest .RESTCatalogServer ;
2824import org .apache .paimon .rest .auth .AuthProvider ;
2925import org .apache .paimon .rest .auth .AuthProviderEnum ;
3026import org .apache .paimon .rest .auth .BearTokenAuthProvider ;
3531import java .io .IOException ;
3632import java .util .UUID ;
3733
38- /** test table in rest catalog. */
39- public class SimpleTableInRESTCatalogMockTest extends SimpleTableInRESTCatalogTestBase {
34+ /** Base simple table test in mock rest catalog. */
35+ public class MockRESTSimpleTableTest extends RESTSimpleTableTest {
4036
4137 @ Override
4238 protected RESTCatalog createRESTCatalog () throws IOException {
Original file line number Diff line number Diff line change 8787import static org .junit .jupiter .api .Assertions .assertThrows ;
8888
8989/** Base test class for {@link RESTCatalog}. */
90- public abstract class RESTCatalogTestBase extends CatalogTestBase {
90+ public abstract class RESTCatalogTest extends CatalogTestBase {
9191
9292 protected ConfigResponse config ;
9393 protected Options options = new Options ();
Original file line number Diff line number Diff line change 1616 * limitations under the License.
1717 */
1818
19- package org .apache .paimon .table ;
19+ package org .apache .paimon .rest ;
2020
2121import org .apache .paimon .catalog .Identifier ;
2222import org .apache .paimon .fs .local .LocalFileIO ;
2323import org .apache .paimon .options .Options ;
24- import org .apache .paimon .rest .RESTCatalog ;
2524import org .apache .paimon .schema .Schema ;
2625import org .apache .paimon .schema .SchemaChange ;
2726import org .apache .paimon .schema .SchemaManager ;
2827import org .apache .paimon .schema .SchemaUtils ;
2928import org .apache .paimon .schema .TableSchema ;
29+ import org .apache .paimon .table .FileStoreTable ;
30+ import org .apache .paimon .table .SimpleTableTestBase ;
3031import org .apache .paimon .types .RowType ;
3132
3233import org .junit .jupiter .api .BeforeEach ;
4142import static org .apache .paimon .CoreOptions .BUCKET ;
4243import static org .apache .paimon .CoreOptions .BUCKET_KEY ;
4344
44- /** base test table in rest catalog. */
45- public abstract class SimpleTableInRESTCatalogTestBase extends SimpleTableTestBase {
45+ /** Base simple table test in rest catalog. */
46+ public abstract class RESTSimpleTableTest extends SimpleTableTestBase {
47+
4648 protected RESTCatalog restCatalog ;
4749 protected String dataPath ;
4850
You can’t perform that action at this time.
0 commit comments