This is an automated email from the ASF dual-hosted git repository. tilman pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/tika.git
commit 5c3c2d5812bfab68e3dc5217a6fc37603f41f5ef Author: Tilman Hausherr <[email protected]> AuthorDate: Fri Oct 24 19:53:46 2025 +0200 TIKA-4525: set default values, add comments --- .../org/apache/tika/pipes/s3/tests/PipeIntegrationTests.java | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/tika-integration-tests/tika-pipes-s3-integration-tests/src/test/java/org/apache/tika/pipes/s3/tests/PipeIntegrationTests.java b/tika-integration-tests/tika-pipes-s3-integration-tests/src/test/java/org/apache/tika/pipes/s3/tests/PipeIntegrationTests.java index 11a9de9c8..737041919 100644 --- a/tika-integration-tests/tika-pipes-s3-integration-tests/src/test/java/org/apache/tika/pipes/s3/tests/PipeIntegrationTests.java +++ b/tika-integration-tests/tika-pipes-s3-integration-tests/src/test/java/org/apache/tika/pipes/s3/tests/PipeIntegrationTests.java @@ -54,15 +54,20 @@ import org.apache.tika.pipes.core.pipesiterator.CallablePipesIterator; import org.apache.tika.pipes.core.pipesiterator.PipesIterator; import org.apache.tika.pipes.emitter.s3.S3Emitter; +// To enable these tests, fill OUTDIR and bucket, and adjust profile and region if needed. @Disabled("turn these into actual tests with mock s3") public class PipeIntegrationTests { private static final Path OUTDIR = Paths.get(""); + /** + * This downloads files from a specific bucket. + * @throws Exception + */ @Test public void testBruteForce() throws Exception { - String region = ""; - String profile = ""; + String region = "us-east-1"; + String profile = "default"; String bucket = ""; AwsCredentialsProvider provider = ProfileCredentialsProvider.builder().profileName(profile).build(); S3Client s3Client = S3Client.builder().credentialsProvider(provider).region(Region.of(region)).build(); @@ -91,6 +96,7 @@ public class PipeIntegrationTests { System.out.println("iterated: " + cnt + " sz: " + sz); } + // to test this, files must be in the fetcher bucket @Test public void testS3ToFS() throws Exception { Fetcher fetcher = getFetcher("tika-config-s3ToFs.xml", "s3f"); @@ -121,6 +127,7 @@ public class PipeIntegrationTests { } } + // to test this, files must be in the iterator bucket @Test public void testS3ToS3() throws Exception { Fetcher fetcher = getFetcher("tika-config-s3Tos3.xml", "s3f");
