diff --git a/clients/hadoopfs/pom.xml b/clients/hadoopfs/pom.xml index 6b7afca754c..edecc990068 100644 --- a/clients/hadoopfs/pom.xml +++ b/clients/hadoopfs/pom.xml @@ -250,7 +250,18 @@ To export to S3: - + + org.apache.maven.plugins + maven-jar-plugin + 2.4 + + + + test-jar + + + + com.gkatzioura.maven.cloud s3-storage-wagon @@ -283,7 +294,6 @@ To export to S3: commons-lang3 3.12.0 - org.apache.hadoop hadoop-common @@ -309,7 +319,11 @@ To export to S3: commons-lang3 3.12.0 - + + javax.xml.bind + jaxb-api + 2.3.1 + org.apache.httpcomponents httpclient @@ -329,42 +343,41 @@ To export to S3: 2.0.0 test + + org.testcontainers + testcontainers + 1.16.3 + test + + + + com.squareup.okhttp3 + mockwebserver + 4.10.0 + test + - - org.testcontainers - testcontainers - 1.16.0 - test - - - - com.squareup.okhttp3 - mockwebserver - 4.10.0 - test - - - - - com.fasterxml.jackson.core - jackson-databind - 2.13.4.2 - test - - - com.fasterxml.jackson.core - jackson-core - 2.12.3 - test - - - com.fasterxml.jackson.core - jackson-annotations - 2.12.3 - test - + + com.fasterxml.jackson.core + jackson-databind + 2.13.4.2 + test + + + com.fasterxml.jackson.core + jackson-core + 2.12.3 + test + + + com.fasterxml.jackson.core + jackson-annotations + 2.12.3 + test + org.mock-server @@ -372,14 +385,18 @@ To export to S3: 5.14.0 test - + + org.mock-server + mockserver-core + 5.15.0 + test + org.immutables value 2.9.3 test - com.google.guava guava diff --git a/clients/hadoopfs/src/test/java/io/lakefs/FSTestBase.java b/clients/hadoopfs/src/test/java/io/lakefs/FSTestBase.java index af1cc801ff8..6b41dd1da4b 100644 --- a/clients/hadoopfs/src/test/java/io/lakefs/FSTestBase.java +++ b/clients/hadoopfs/src/test/java/io/lakefs/FSTestBase.java @@ -56,11 +56,12 @@ /** * Base for all LakeFSFilesystem tests. Helps set common components up but * contains no tests of its own. + * The visibility of this class is public as it's being used by other libraries for testing purposes * * See e.g. "Base Test Class Testing Pattern: Why and How to use", - * https://eliasnogueira.com/base-test-class-testing-pattern-why-and-how-to-use/ + * ... */ -abstract class FSTestBase { +public abstract class FSTestBase { static protected final Long UNUSED_FILE_SIZE = 1L; static protected final Long UNUSED_MTIME = 0L; static protected final String UNUSED_CHECKSUM = "unused"; diff --git a/clients/hadoopfs/src/test/java/io/lakefs/S3FSTestBase.java b/clients/hadoopfs/src/test/java/io/lakefs/S3FSTestBase.java index 49da8a190a8..d926c98410d 100644 --- a/clients/hadoopfs/src/test/java/io/lakefs/S3FSTestBase.java +++ b/clients/hadoopfs/src/test/java/io/lakefs/S3FSTestBase.java @@ -32,8 +32,9 @@ /** * Base for all LakeFSFilesystem tests that need to access S3. It adds a * MinIO container to FSTestBase, and configures to use it. + * The visibility of this class is public as it's being used by other libraries for testing purposes */ -abstract class S3FSTestBase extends FSTestBase { +public abstract class S3FSTestBase extends FSTestBase { static private final Logger LOG = LoggerFactory.getLogger(S3FSTestBase.class); protected String s3Endpoint;