fix tests

parent 93c427bf
Pipeline #20151 passed with stages
in 8 minutes and 16 seconds
......@@ -39,7 +39,7 @@ class BinaryResourceMetadataTest extends AnyFunSuite {
}
test("the value of the id field of a KafkaMessage should match the id of the parsed object") {
val km = BinaryResourceMetadata.build(loadMessageWithBinaryResource("Create", "image/png", "https://memobase.ch/digital/BAZ-MEI_77466-1/binary"), externalBaseUrl, "mb-wf2")
val km = BinaryResourceMetadata.build(loadMessageWithBinaryResource("Create", "image/png", "sftp:/BAZ-MEI_77466-1/binary"), externalBaseUrl, "mb-wf2")
assert(km.head.isSuccess)
}
......@@ -55,7 +55,7 @@ class BinaryResourceMetadataTest extends AnyFunSuite {
assertThrows[UnmanageableMediaFileType] {
BinaryResourceMetadata.build(loadMessageWithBinaryResource("Create",
"application/pdf",
"https://memobase.ch/digital/BAZ-MEI_77466-1/binary"), externalBaseUrl, "mb-wf2")
"sftp:/BAZ-MEI_77466-1/binary"), externalBaseUrl, "mb-wf2")
.head
.get
}
......@@ -65,7 +65,7 @@ class BinaryResourceMetadataTest extends AnyFunSuite {
assertThrows[UnknownEventType] {
BinaryResourceMetadata.build(loadMessageWithBinaryResource("Upload",
"image/jpeg",
"https://memobase.ch/digital/BAZ-MEI_77466-1/binary"), externalBaseUrl, "mb-wf2")
"sftp:/BAZ-MEI_77466-1/binary"), externalBaseUrl, "mb-wf2")
.head
.get
}
......
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