From 5135f855a2ca1bf2594313059251682e17b5964b Mon Sep 17 00:00:00 2001 From: Jorge Esteban Quilcate Otoya Date: Tue, 29 Aug 2023 18:06:06 +0300 Subject: [PATCH] fixup! feat(e2e): add e2e tests Ack issue with deletion --- .../java/io/aiven/kafka/tieredstorage/e2e/SingleBrokerTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/e2e/src/test/java/io/aiven/kafka/tieredstorage/e2e/SingleBrokerTest.java b/e2e/src/test/java/io/aiven/kafka/tieredstorage/e2e/SingleBrokerTest.java index 8a015eac2..2231e89ff 100644 --- a/e2e/src/test/java/io/aiven/kafka/tieredstorage/e2e/SingleBrokerTest.java +++ b/e2e/src/test/java/io/aiven/kafka/tieredstorage/e2e/SingleBrokerTest.java @@ -127,7 +127,6 @@ static void setupKafka(final Consumer tsPluginSetup) throws Exce try { baseDir = Files.createTempDirectory("junit"); - baseDir.toFile().deleteOnExit(); // works only if empty localDataDir = baseDir.resolve(KAFKA_DATA_SUBDIR_HOST); localDataDir.toFile().mkdirs(); localDataDir.toFile().setWritable(true, false); @@ -189,6 +188,7 @@ static void stopKafka() { static void cleanupStorage() { if (baseDir != null) { + // TODO: failing silently atm, as docker overrides owner/group and deletion fails FileUtils.deleteQuietly(baseDir.toFile()); } }