2222import static org .assertj .core .api .Assertions .assertThat ;
2323
2424import io .quarkus .test .junit .QuarkusTest ;
25- import io .quarkus .test .junit .QuarkusTestProfile ;
26- import io .quarkus .test .junit .TestProfile ;
2725import jakarta .ws .rs .core .Response ;
2826import java .util .List ;
2927import java .util .Map ;
28+ import java .util .UUID ;
3029import org .apache .iceberg .rest .responses .ConfigResponse ;
3130import org .apache .polaris .core .admin .model .*;
3231import org .apache .polaris .core .rest .PolarisEndpoints ;
3534import org .junit .jupiter .params .provider .ValueSource ;
3635
3736@ QuarkusTest
38- @ TestProfile (GetConfigTest .Profile .class )
3937public 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