Skip to content

Commit

Permalink
Add log messages to test
Browse files Browse the repository at this point in the history
  • Loading branch information
kaklakariada committed May 8, 2024
1 parent cc00854 commit ce1eac4
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
import java.nio.file.Path;
import java.util.List;
import java.util.concurrent.TimeoutException;
import java.util.logging.Logger;

import org.hamcrest.Matcher;
import org.junit.jupiter.api.BeforeAll;
Expand All @@ -29,6 +30,8 @@

@Testcontainers
class BucketFsClientExecutableJarIT {
private static final Logger LOGGER = Logger.getLogger(BucketFsClientExecutableJarIT.class.getName());

@Container
private static ExasolContainer<? extends ExasolContainer<?>> EXASOL = new ExasolContainer<>()//
.withRequiredServices(ExasolService.BUCKETFS).withReuse(true);
Expand All @@ -42,10 +45,12 @@ class BucketFsClientExecutableJarIT {
@BeforeAll
static void verifyBucketFsWorks() throws BucketAccessException, InterruptedException, TimeoutException {
final List<String> contentBeforeUpload = EXASOL.getDefaultBucket().listContents();
LOGGER.info("Content before upload: " + contentBeforeUpload);
final String pathInBucket = "test-file-" + System.currentTimeMillis() + ".txt";
LOGGER.info("Uploading file to BucketFS: " + pathInBucket);
EXASOL.getDefaultBucket().uploadStringContent("content", pathInBucket);
final List<String> content = EXASOL.getDefaultBucket().listContents();
assertThat(content, hasSize(contentBeforeUpload.size() + 1));
LOGGER.info("Content after upload: " + content);
}

@Test
Expand Down

0 comments on commit ce1eac4

Please sign in to comment.