nandorKollar commented on code in PR #4602:
URL: https://github.com/apache/polaris/pull/4602#discussion_r3350457621


##########
persistence/relational-jdbc/src/test/java/org/apache/polaris/persistence/relational/jdbc/AtomicMetastoreManagerWithJdbcBasePersistenceImplPostgresSchemaIT.java:
##########
@@ -0,0 +1,113 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.polaris.persistence.relational.jdbc;
+
+import static 
org.apache.polaris.containerspec.ContainerSpecHelper.containerSpecHelper;
+
+import java.sql.Connection;
+import java.sql.DriverManager;
+import java.sql.SQLException;
+import java.sql.Statement;
+import java.util.stream.Stream;
+import javax.sql.DataSource;
+import 
org.apache.polaris.test.commons.PostgresRelationalJdbcLifeCycleManagement;
+import org.junit.jupiter.params.Parameter;
+import org.junit.jupiter.params.ParameterizedClass;
+import org.junit.jupiter.params.provider.MethodSource;
+import org.postgresql.ds.PGSimpleDataSource;
+import org.testcontainers.junit.jupiter.Container;
+import org.testcontainers.junit.jupiter.Testcontainers;
+import org.testcontainers.postgresql.PostgreSQLContainer;
+
+/**
+ * Runs {@link 
org.apache.polaris.core.persistence.BasePolarisMetaStoreManagerTest} integration
+ * tests against every PostgreSQL schema version on the classpath.
+ */
+@Testcontainers
+@ParameterizedClass
+@MethodSource("schemaVersions")
+public class AtomicMetastoreManagerWithJdbcBasePersistenceImplPostgresSchemaIT
+    extends AtomicMetastoreManagerWithJdbcBasePersistenceImplTest {
+
+  @Container
+  private static final PostgreSQLContainer POSTGRES =
+      new PostgreSQLContainer(
+          containerSpecHelper("postgres", 
PostgresRelationalJdbcLifeCycleManagement.class)

Review Comment:
   It seems it is 😞 , otherwise:
   ```
   java.lang.ExceptionInInitializerError
        at java.base/jdk.internal.misc.Unsafe.ensureClassInitialized0(Native 
Method)
        at 
java.base/jdk.internal.misc.Unsafe.ensureClassInitialized(Unsafe.java:1161)
        at 
java.base/java.lang.reflect.Field.acquireOverrideFieldAccessor(Field.java:1200)
        at 
java.base/java.lang.reflect.Field.getOverrideFieldAccessor(Field.java:1169)
        at java.base/java.lang.reflect.Field.get(Field.java:444)
        at 
org.testcontainers.junit.jupiter.TestcontainersExtension.getContainerInstance(TestcontainersExtension.java:248)
        at 
org.testcontainers.junit.jupiter.TestcontainersExtension.lambda$findSharedContainers$10(TestcontainersExtension.java:209)
        at 
java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:215)
        at 
java.base/java.util.AbstractList$RandomAccessSpliterator.forEachRemaining(AbstractList.java:722)
        at 
java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:570)
        at 
java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:560)
        at 
java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:921)
        at 
java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:265)
        at 
java.base/java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:727)
        at 
org.testcontainers.junit.jupiter.TestcontainersExtension.findSharedContainers(TestcontainersExtension.java:210)
        at 
org.testcontainers.junit.jupiter.TestcontainersExtension.beforeAll(TestcontainersExtension.java:55)
        at java.base/java.util.ArrayList.forEach(ArrayList.java:1597)
   Caused by: java.lang.NullPointerException: Dockerfile-postgres-version not 
found
        at java.base/java.util.Objects.requireNonNull(Objects.java:246)
        at 
org.apache.polaris.containerspec.ContainerSpecHelper.dockerImageName(ContainerSpecHelper.java:100)
        at 
org.apache.polaris.persistence.relational.jdbc.idempotency.RelationalJdbcIdempotencyStorePostgresIT.<clinit>(RelationalJdbcIdempotencyStorePostgresIT.java:48)
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to