Commit 513829a0 authored by Thomas Bernhart's avatar Thomas Bernhart
Browse files

MEMO-650: ingest a binary during integration tests

parent 9148b6ad
......@@ -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/test/resources/data/binary.txt")
"/memobase/AFZ/BECKER/binary.txt",
FileInputStream("src/integrationTest/resources/sftpData/binary.txt")
)
*/
}
private val inputProducer: KafkaProducer<String, String>
......
......@@ -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
This is a testfile.
\ No newline at end of file
Supports Markdown
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