Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
🚀
This server has been upgraded to GitLab release
15.7
.
🚀
Open sidebar
memoriav
Memobase 2020
services
Import Process
Fedora Ingest Service
Commits
dd6f3833
Commit
dd6f3833
authored
Sep 05, 2020
by
Thomas Bernhart
Browse files
WIP: MEMO-428: Add integration test for institution
parent
8e247802
Pipeline
#13863
passed with stages
in 6 minutes and 32 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/integrationTest/kotlin/ServiceTest.kt
View file @
dd6f3833
...
...
@@ -98,7 +98,7 @@ class ServiceTest {
inputProducer
.
send
(
ProducerRecord
(
"test-ingest-in"
,
"
https://memobase.ch/record/
$id"
,
"$id"
,
inputFile
.
readText
()
)
)
...
...
@@ -140,6 +140,19 @@ class ServiceTest {
message
=
"Ingested resource AFZ-IB_Becker_Audiovisuals_63."
)
)
)
),
TestParams
(
2
,
listOf
(
"test-institution.nt"
),
listOf
(
Report
(
id
=
"test"
,
status
=
"SUCCESS"
,
message
=
"Ingested resource test."
)
)
)
)
}
src/integrationTest/resources/2/test-institution.nt
0 → 100644
View file @
dd6f3833
<https://memobase.ch/institution/test> <http://www.wikidata.org/prop/direct/P2699> "http://www.plansfixes.ch/indexation/" .
<https://memobase.ch/institution/test> <http://www.wikidata.org/prop/direct/P791> "12345" .
<https://memobase.ch/institution/test> <http://www.wikidata.org/prop/direct/P856> "http://www.plansfixes.ch/" .
<https://memobase.ch/institution/test> <http://www.wikidata.org/prop/direct/P968> "info@plans-fixess.ch" .
<https://memobase.ch/institution/test> <https://www.ica.org/standards/RiC/ontology#descriptiveNote> "<p>Association Films Plans-Fixes</p>"@de .
<https://memobase.ch/institution/test> <https://www.ica.org/standards/RiC/ontology#descriptiveNote> "<p>Association Films Plans-Fixes</p>"@fr .
<https://memobase.ch/institution/test> <https://www.ica.org/standards/RiC/ontology#descriptiveNote> "<p>Association Films Plans-Fixes</p>"@it .
<https://memobase.ch/institution/test> <https://www.ica.org/standards/RiC/ontology#hasLocation> _:B .
<https://memobase.ch/institution/test> <https://www.ica.org/standards/RiC/ontology#hasLocation> _:B .
<https://memobase.ch/institution/test> <https://www.ica.org/standards/RiC/ontology#identifiedBy> _:B .
<https://memobase.ch/institution/test> <https://www.ica.org/standards/RiC/ontology#name> "Association Films Plans-Fixes"@de .
<https://memobase.ch/institution/test> <https://www.ica.org/standards/RiC/ontology#name> "Association Films Plans-Fixes"@fr .
<https://memobase.ch/institution/test> <https://www.ica.org/standards/RiC/ontology#name> "Association Films Plans-Fixes"@it .
_:B <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <https://www.ica.org/standards/RiC/ontology#Identifier> .
_:B <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <https://www.ica.org/standards/RiC/ontology#Place> .
_:B <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <https://www.ica.org/standards/RiC/ontology#Place> .
_:B <http://www.wikidata.org/prop/direct/P131> <http://www.wikidata.org/entity/Q1034> .
_:B <http://www.wikidata.org/prop/direct/P131> <http://www.wikidata.org/entity/Q1034> .
_:B <http://www.wikidata.org/prop/direct/P131> <http://www.wikidata.org/entity/Q11911> .
_:B <http://www.wikidata.org/prop/direct/P131> <http://www.wikidata.org/entity/Q11911> .
_:B <http://www.wikidata.org/prop/direct/P17> <http://www.wikidata.org/entity/Q39> .
_:B <http://www.wikidata.org/prop/direct/P17> <http://www.wikidata.org/entity/Q39> .
_:B <http://www.wikidata.org/prop/direct/P281> "2502" .
_:B <http://www.wikidata.org/prop/direct/P281> "2502" .
_:B <http://www.wikidata.org/prop/direct/P625> "Point(7.247222222 47.137222222)" .
_:B <http://www.wikidata.org/prop/direct/P625> "Point(7.247222222 47.137222222)" .
_:B <http://www.wikidata.org/prop/direct/P6375> "Ostseestraße 107"@de .
_:B <http://www.wikidata.org/prop/direct/P6375> "Ostseestraße 107"@fr .
_:B <http://www.wikidata.org/prop/direct/P6375> "Ostseestraße 107"@it .
_:B <http://www.wikidata.org/prop/direct/P6375> "Straßenname 12\nZusätzliche Adressinformationen"@de .
_:B <http://www.wikidata.org/prop/direct/P6375> "Straßenname 12\nZusätzliche Adressinformationen"@fr .
_:B <http://www.wikidata.org/prop/direct/P6375> "Straßenname 12\nZusätzliche Adressinformationen"@it .
_:B <http://www.wikidata.org/prop/direct/P669> "Ostseestraße"@de .
_:B <http://www.wikidata.org/prop/direct/P669> "Ostseestraße"@fr .
_:B <http://www.wikidata.org/prop/direct/P669> "Ostseestraße"@it .
_:B <http://www.wikidata.org/prop/direct/P669> "Straßenname"@de .
_:B <http://www.wikidata.org/prop/direct/P669> "Straßenname"@fr .
_:B <http://www.wikidata.org/prop/direct/P669> "Straßenname"@it .
_:B <http://www.wikidata.org/prop/direct/P670> "107" .
_:B <http://www.wikidata.org/prop/direct/P670> "12" .
_:B <https://www.ica.org/standards/RiC/ontology#identifier> "test" .
_:B <https://www.ica.org/standards/RiC/ontology#type> "main" .
src/integrationTest/resources/test2.yml
0 → 100644
View file @
dd6f3833
sftp
:
host
:
localhost
port
:
22000
user
:
user
password
:
password
app
:
appDirectory
:
/memobase/test_record_set_1
fedora
:
username
:
fedoraAdmin
password
:
fedoraAdmin
internalBaseUrl
:
http://localhost:8080/fcrepo/rest/
externalBaseUrl
:
https://memobase.ch/
kafka
:
consumer
:
bootstrap.servers
:
localhost:12345
client.id
:
test-client-consumer
group.id
:
test-group
producer
:
bootstrap.servers
:
localhost:12345
client.id
:
test-client-prod
topic
:
in
:
test-ingest-in
out
:
test-ingest-out
process
:
test-ingest-reporting
\ No newline at end of file
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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