forked from apache/gravitino
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[apache#2566] Improvement(spark-connector): Refactoring integration t…
…ests for spark-connector (apache#2578) ### What changes were proposed in this pull request? 1. Make SparkIT to SparkCommonIT which contains the common tests shared by all catalogs. 2. Add new SparkHiveCatalogIT to test Hive specific tests, and both SparkXXCatalogIT extends SparkCommonIT. ### Why are the changes needed? Separate integration testing for different data sources. Fix: apache#2566 ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? Integration tests after separation.
- Loading branch information
Showing
3 changed files
with
39 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
...rc/test/java/com/datastrato/gravitino/integration/test/spark/hive/SparkHiveCatalogIT.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
/* | ||
* Copyright 2024 Datastrato Pvt Ltd. | ||
* This software is licensed under the Apache License version 2. | ||
*/ | ||
package com.datastrato.gravitino.integration.test.spark.hive; | ||
|
||
import com.datastrato.gravitino.integration.test.spark.SparkCommonIT; | ||
import org.junit.jupiter.api.Tag; | ||
import org.junit.jupiter.api.TestInstance; | ||
|
||
@Tag("gravitino-docker-it") | ||
@TestInstance(TestInstance.Lifecycle.PER_CLASS) | ||
public class SparkHiveCatalogIT extends SparkCommonIT { | ||
|
||
@Override | ||
protected String getCatalogName() { | ||
return "hive"; | ||
} | ||
|
||
@Override | ||
protected String getProvider() { | ||
return "hive"; | ||
} | ||
} |