|
|
|
@ -358,11 +358,9 @@ public class GraphDbReaderAndESIndexTest {
|
|
|
|
|
@Test
|
|
|
|
|
public void uploadDoliaTest() throws Exception {
|
|
|
|
|
boolean isRecord = true;
|
|
|
|
|
String recordId = "https://ariadne-infrastructure.eu/aocat/Resource/Inrap/F0E19AC1-AE02-3BE5-AF78-D9EEC1670AC1";
|
|
|
|
|
String recordId = "https://ariadne-infrastructure.eu/aocat/Resource/Inrap/EEAA72F8-3C33-3211-A56B-296164B5A317";
|
|
|
|
|
String datasource = "dolia";
|
|
|
|
|
String collectionId = "fieldworkreport";
|
|
|
|
|
readAndIndexTest(isRecord, recordId, datasource, collectionId);
|
|
|
|
|
recordId = "https://ariadne-infrastructure.eu/aocat/Resource/Inrap/28630596-6EFF-38D7-91C7-8A6134CBD91B";
|
|
|
|
|
String collectionId = "full";
|
|
|
|
|
readAndIndexTest(isRecord, recordId, datasource, collectionId);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -402,6 +400,24 @@ public class GraphDbReaderAndESIndexTest {
|
|
|
|
|
readAndIndexTest(isRecord, recordId, datasource, collectionId);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Test
|
|
|
|
|
public void uploadMibacTest() throws Exception {
|
|
|
|
|
boolean isRecord = false;
|
|
|
|
|
String recordId = "https://ariadne-infrastructure.eu/aocat/Collection/MiC/662BD48F-7313-3017-8040-14CFFE1A02EB";
|
|
|
|
|
String datasource = "mibac";
|
|
|
|
|
String collectionId = "test";
|
|
|
|
|
readAndIndexTest(isRecord, recordId, datasource, collectionId);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Test
|
|
|
|
|
public void uploadBMPASTest() throws Exception {
|
|
|
|
|
boolean isRecord = true;
|
|
|
|
|
String recordId = "https://ariadne-infrastructure.eu/aocat/Resource/BMPAS/A561885D-2480-3794-82AD-A06B7462DA74";
|
|
|
|
|
String datasource = "bmpas";
|
|
|
|
|
String collectionId = "coins";
|
|
|
|
|
readAndIndexTest(isRecord, recordId, datasource, collectionId);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private void readAndIndexTest(boolean isRecord, String recordId, String datasource, String collectionId) throws Exception {
|
|
|
|
|
final ClassPathResource resource = new ClassPathResource("application.properties");
|
|
|
|
|
Properties appProps = new Properties();
|
|
|
|
|