Add acceptance tests

This commit is contained in:
Kirill Grachev 2023-05-15 18:00:27 +03:00
parent 80deddc412
commit f06182ee1d

View File

@ -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()
}
}