Commit f4746db7 authored by Jonas Waeber's avatar Jonas Waeber
Browse files

fix resource path

parent 7c23bb20
Pipeline #8497 failed with stages
in 1 minute and 59 seconds
......@@ -11,7 +11,7 @@ test:
tags:
- mbr
script:
- ./gradlew --stacktrace --debug --no-daemon test --fail-fast --tests "org.memobase.Tests"
- ./gradlew --stacktrace --no-daemon test --fail-fast --tests "org.memobase.Tests"
.build-image:
stage: publish
......
......@@ -46,8 +46,8 @@ class Tests {
"/memobase/test_institution_1/test_record_set_1/",
"/memobase/test_institution_2/test_record_set_2/"
)
sftpServer.putFile("/memobase/test_institution_1/test_record_set_1/brandt.csv", "src/test/resources/brandt.csv")
sftpServer.putFile("/memobase/test_institution_2/test_record_set_2/bauGAZH_metadaten.csv", "src/test/resources/bauGAZH_metadaten.csv")
sftpServer.putFile("/memobase/test_institution_1/test_record_set_1/brandt.csv", "src/test/resources/data/brandt.csv")
sftpServer.putFile("/memobase/test_institution_2/test_record_set_2/bauGAZH_metadaten.csv", "src/test/resources/data/bauGAZH_metadaten.csv")
}
private val consumer: KafkaConsumer<String, String>
......@@ -105,12 +105,12 @@ class Tests {
private fun directoryReaderTests() = Stream.of(
TestParams(
"test1.yml",
expectedKey = "brandt.csv",
expectedKey = "data/brandt.csv",
expectedValue = "{\"path\":\"/memobase/test_institution_1/test_record_set_1/brandt.csv\",\"format\":\"CSV\"}"
),
TestParams(
"test2.yml",
expectedKey = "bauGAZH_metadaten.csv",
expectedKey = "data/bauGAZH_metadaten.csv",
expectedValue = "{\"path\":\"/memobase/test_institution_2/test_record_set_2/bauGAZH_metadaten.csv\",\"format\":\"CSV\"}"
)
)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment