Add acceptance tests
This commit is contained in:
parent
80deddc412
commit
f06182ee1d
@ -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()
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user