test for INP

This commit is contained in:
Enrico Ottonello 2022-07-18 11:20:28 +02:00
parent a10ad74699
commit 44fb0bb3c1
1 changed files with 9 additions and 0 deletions

View File

@ -418,6 +418,15 @@ public class GraphDbReaderAndESIndexTest {
readAndIndexTest(isRecord, recordId, datasource, collectionId);
}
@Test
public void uploadINPTest() throws Exception {
boolean isRecord = true;
String recordId = "https://ariadne-infrastructure.eu/aocat/Resource/INPRAN/99C2A8A2-32A0-344D-9F41-FD8E7B2C21E3";
String datasource = "inp";
String collectionId = "sites";
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();