Commit 6d5d7df7 authored by Jonas Waeber's avatar Jonas Waeber
Browse files

Update dependency

Add test
parent fda90480
Pipeline #44206 passed with stages
in 3 minutes and 12 seconds
......@@ -32,7 +32,7 @@ ext {
dependencies {
implementation 'ch.memobase:memobase-kafka-utils:0.3.4'
implementation 'ch.memobase:mapper-service-configuration:1.1.4'
implementation 'ch.memobase:mapper-service-configuration:1.1.5'
implementation 'org.memobase:memobase-service-utilities:3.1.3'
implementation "org.apache.logging.log4j:log4j-core:${log4jV}"
......
......@@ -219,4 +219,36 @@ class TestPipeline {
)
}
@Test
@Disabled
fun `test 5 stuff`() {
val topics = setupTest(5, "test-5")
while (topics.first.isEmpty) {
}
assertThat(topics.second.isEmpty)
.withFailMessage("Reports topic is empty.")
.isFalse()
val report = topics.second.readRecord()
val reportKey = report.key
val reportValue = report.value
val record = topics.first.readRecord()
val recordValue = record.value
val recordKey = record.key
assertAll(
{
assertThat(sort(recordValue))
.isEqualTo(sort(readFile("output.nt", 5)))
},
{
assertThat(recordKey)
.isEqualTo("https://memobase.ch/record/rst-001-09")
}
)
}
}
\ No newline at end of file
app:
configTopic: mb-di-config-topic
reportingStepName: test
kafka:
streams:
bootstrap.servers: localhost:12345
application.id: test-client-4
topic:
in: test-topic-in
out: test-topic-out
process: test-process
\ No newline at end of file
{
"ID": "09"
}
\ No newline at end of file
record:
uri: ID
type:
const: "Film"
digital:
locator: Streaming
rights:
usage:
name: rightsStatementName_digital
sameAs: rightsStatementURL_digital
<https://memobase.ch/record/rst-001-09> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <https://www.ica.org/standards/RiC/ontology#Record> .
<https://memobase.ch/record/rst-001-09> <https://memobase.ch/internal/isPublished> "false"^^<http://www.w3.org/2001/XMLSchema#boolean> .
<https://memobase.ch/record/rst-001-09> <https://www.ica.org/standards/RiC/ontology#heldBy> <https://memobase.ch/institution/ins> .
<https://memobase.ch/record/rst-001-09> <https://www.ica.org/standards/RiC/ontology#identifiedBy> _:B .
<https://memobase.ch/record/rst-001-09> <https://www.ica.org/standards/RiC/ontology#isPartOf> <https://memobase.ch/recordSet/rst-001> .
<https://memobase.ch/record/rst-001-09> <https://www.ica.org/standards/RiC/ontology#type> "Film" .
_:B <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <https://www.ica.org/standards/RiC/ontology#Identifier> .
_:B <https://www.ica.org/standards/RiC/ontology#identifier> "rst-001-09" .
_:B <https://www.ica.org/standards/RiC/ontology#type> "main" .
\ No newline at end of file
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