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
Import Process
Fedora Ingest Service
Commits
513829a0
Commit
513829a0
authored
Sep 01, 2020
by
Thomas Bernhart
Browse files
MEMO-650: ingest a binary during integration tests
parent
9148b6ad
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/integrationTest/kotlin/ServiceTest.kt
View file @
513829a0
...
...
@@ -18,6 +18,7 @@
package
org.memobase
import
java.io.File
import
java.io.FileInputStream
import
java.time.Duration
import
java.util.Properties
import
java.util.stream.Stream
...
...
@@ -51,16 +52,14 @@ class ServiceTest {
AdminClient
.
create
(
mapOf
(
Pair
(
AdminClientConfig
.
BOOTSTRAP_SERVERS_CONFIG
,
"localhost:12345"
)))
init
{
// TODO: setup embedded sftpServer with test data
/*
// setup embedded sftpServer with test data
sftpServer
.
createDirectories
(
"/memobase/
test_institution_1/test_record_set_1
/"
"/memobase/
AFZ/BECKER
/"
)
sftpServer
.
putFile
(
"/memobase/
test_institution_1/test_record_set_1
/binary.txt",
FileInputStream("src/
t
est/resources/
d
ata/binary.txt")
"/memobase/
AFZ/BECKER
/binary.txt"
,
FileInputStream
(
"src/
integrationT
est/resources/
sftpD
ata/binary.txt"
)
)
*/
}
private
val
inputProducer
:
KafkaProducer
<
String
,
String
>
...
...
src/integrationTest/resources/1/AFZ-IB_Becker_Audiovisuals_63.nt
View file @
513829a0
...
...
@@ -141,4 +141,10 @@ _:B3144591eX2D60bbX2D4e8dX2D8990X2D81bd3a77397c <http://www.w3.org/2004/02/skos/
_:B3144591eX2D60bbX2D4e8dX2D8990X2D81bd3a77397c <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/2004/02/skos/core#Concept> .
_:B8a908fe981878ee6c31e646a803cf412 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <https://www.ica.org/standards/RiC/ontology#Person> .
_:B8a908fe981878ee6c31e646a803cf412 <https://www.ica.org/standards/RiC/ontology#agentIsTargetOfCreationRelation> _:B16fa81508225a906388e56d5fb8fbc75 .
_:B8a908fe981878ee6c31e646a803cf412 <https://www.ica.org/standards/RiC/ontology#name> "Egon Becker"@de .
\ No newline at end of file
_:B8a908fe981878ee6c31e646a803cf412 <https://www.ica.org/standards/RiC/ontology#name> "Egon Becker"@de .
<https://memobase.ch/instantiation/digital/AFZ-IB_Becker_Audiovisuals_63-2> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <https://www.ica.org/standards/RiC/ontology#Instantiation> .
<https://memobase.ch/instantiation/digital/AFZ-IB_Becker_Audiovisuals_63-2> <https://www.ica.org/standards/RiC/ontology#type> "digitalObject" .
<https://memobase.ch/instantiation/digital/AFZ-IB_Becker_Audiovisuals_63-2> <http://www.ebu.ch/metadata/ontologies/ebucore/ebucore#locator> "sftp:/memobase/AFZ/BECKER/binary.txt" .
<https://memobase.ch/instantiation/digital/AFZ-IB_Becker_Audiovisuals_63-2> <http://www.ebu.ch/metadata/ontologies/ebucore/ebucore#hasMimeType> "text/plain" .
<https://memobase.ch/instantiation/digital/AFZ-IB_Becker_Audiovisuals_63-2> <https://www.ica.org/standards/RiC/ontology#instantiates> <https://memobase.ch/record/AFZ-IB_Becker_Audiovisuals_63> .
<https://memobase.ch/instantiation/digital/AFZ-IB_Becker_Audiovisuals_63-2> <https://www.ica.org/standards/RiC/ontology#isDerivedFromInstantiation> <https://memobase.ch/instantiation/physical/AFZ-IB_Becker_Audiovisuals_63-0> .
\ No newline at end of file
src/integrationTest/resources/sftpData/binary.txt
View file @
513829a0
This is a testfile.
\ No newline at end of file
Write
Preview
Supports
Markdown
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