Skip to content

Commit 0557bde

Browse files
committed
fix test
1 parent ba292fc commit 0557bde

File tree

1 file changed

+2
-17
lines changed
  • quarkus/service/src/test/java/org/apache/polaris/service/quarkus/catalog

1 file changed

+2
-17
lines changed

quarkus/service/src/test/java/org/apache/polaris/service/quarkus/catalog/GetConfigTest.java

Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,10 @@
2222
import static org.assertj.core.api.Assertions.assertThat;
2323

2424
import io.quarkus.test.junit.QuarkusTest;
25-
import io.quarkus.test.junit.QuarkusTestProfile;
26-
import io.quarkus.test.junit.TestProfile;
2725
import jakarta.ws.rs.core.Response;
2826
import java.util.List;
2927
import java.util.Map;
28+
import java.util.UUID;
3029
import org.apache.iceberg.rest.responses.ConfigResponse;
3130
import org.apache.polaris.core.admin.model.*;
3231
import org.apache.polaris.core.rest.PolarisEndpoints;
@@ -35,21 +34,7 @@
3534
import org.junit.jupiter.params.provider.ValueSource;
3635

3736
@QuarkusTest
38-
@TestProfile(GetConfigTest.Profile.class)
3937
public class GetConfigTest {
40-
public static class Profile implements QuarkusTestProfile {
41-
@Override
42-
public Map<String, String> getConfigOverrides() {
43-
return Map.of(
44-
"polaris.features.defaults.\"ALLOW_SPECIFYING_FILE_IO_IMPL\"",
45-
"true",
46-
"polaris.features.defaults.\"INITIALIZE_DEFAULT_CATALOG_FILEIO_FOR_TEST\"",
47-
"true",
48-
"polaris.features.defaults.\"SUPPORTED_CATALOG_STORAGE_TYPES\"",
49-
"[\"FILE\"]");
50-
}
51-
}
52-
5338
@ParameterizedTest
5439
@ValueSource(booleans = {true, false})
5540
public void testGetConfig(boolean enableGenericTable) {
@@ -60,7 +45,7 @@ public void testGetConfig(boolean enableGenericTable) {
6045
FileStorageConfigInfo.builder(StorageConfigInfo.StorageTypeEnum.FILE)
6146
.setAllowedLocations(List.of("file://"))
6247
.build();
63-
String catalogName = "test-catalog";
48+
String catalogName = "test-catalog-" + UUID.randomUUID();
6449
Catalog catalog =
6550
PolarisCatalog.builder()
6651
.setType(Catalog.TypeEnum.INTERNAL)

0 commit comments

Comments
 (0)