Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
memoriav
Memobase 2020
services
postprocessing
Media Converter
Commits
a7503ca3
Unverified
Commit
a7503ca3
authored
Jan 15, 2021
by
Sebastian Schüpbach
Browse files
fix tests
parent
93c427bf
Pipeline
#20151
passed with stages
in 8 minutes and 16 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
src/test/scala/ch/memobase/BinaryResourceMetadataTest.scala
View file @
a7503ca3
...
...
@@ -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
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment