From f06182ee1d1536db1ac3f1796e6d33646a86dd1f Mon Sep 17 00:00:00 2001 From: Kirill Grachev Date: Mon, 15 May 2023 18:00:27 +0300 Subject: [PATCH] Add acceptance tests --- .../kscience/snark/storage/JustCreates.kt | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 snark-storage-driver/src/test/kotlin/space/kscience/snark/storage/JustCreates.kt diff --git a/snark-storage-driver/src/test/kotlin/space/kscience/snark/storage/JustCreates.kt b/snark-storage-driver/src/test/kotlin/space/kscience/snark/storage/JustCreates.kt new file mode 100644 index 0000000..ef9478a --- /dev/null +++ b/snark-storage-driver/src/test/kotlin/space/kscience/snark/storage/JustCreates.kt @@ -0,0 +1,25 @@ +package space.kscience.snark.storage + +import org.junit.jupiter.api.Test +import kotlin.io.path.createTempDirectory + +class JustCreates { + + @Test + fun s3Created() { + val dir = Directory.fromConfig(S3ServiceConfig) + dir.close() + } + + @Test + fun s3BucketCreated() { + val dir = Directory.fromConfig(S3BucketConfig("snark-test")) + dir.close() + } + + @Test + fun localCreated() { + val dir = Directory.fromConfig(LocalConfig(createTempDirectory("snark-test"))) + dir.close() + } +} \ No newline at end of file