Fix broken test and loading
This commit is contained in:
@@ -36,11 +36,16 @@ public class EnvironmentHelper {
|
|||||||
properties.putIfAbsent("hibernate.cache.use_structured_entries", "false");
|
properties.putIfAbsent("hibernate.cache.use_structured_entries", "false");
|
||||||
properties.putIfAbsent("hibernate.cache.use_minimal_puts", "false");
|
properties.putIfAbsent("hibernate.cache.use_minimal_puts", "false");
|
||||||
|
|
||||||
properties.putIfAbsent(BackendSettings.backendKey(LuceneIndexSettings.DIRECTORY_TYPE), "local-filesystem");
|
if (jpaProps.getOrDefault("spring.jpa.properties.hibernate.search.enabled", "false").toString() == "true") {
|
||||||
properties.putIfAbsent(BackendSettings.backendKey(LuceneIndexSettings.DIRECTORY_ROOT), "target/lucenefiles");
|
properties.putIfAbsent(HibernateOrmMapperSettings.ENABLED, true);
|
||||||
properties.putIfAbsent(BackendSettings.backendKey(BackendSettings.TYPE), "lucene");
|
properties.putIfAbsent(BackendSettings.backendKey(LuceneIndexSettings.DIRECTORY_TYPE), "local-filesystem");
|
||||||
properties.putIfAbsent(BackendSettings.backendKey(LuceneBackendSettings.ANALYSIS_CONFIGURER), HapiLuceneAnalysisConfigurer.class.getName());
|
properties.putIfAbsent(BackendSettings.backendKey(LuceneIndexSettings.DIRECTORY_ROOT), "target/lucenefiles");
|
||||||
properties.putIfAbsent(BackendSettings.backendKey(LuceneBackendSettings.LUCENE_VERSION), "LUCENE_CURRENT");
|
properties.putIfAbsent(BackendSettings.backendKey(BackendSettings.TYPE), "lucene");
|
||||||
|
properties.putIfAbsent(BackendSettings.backendKey(LuceneBackendSettings.ANALYSIS_CONFIGURER), HapiLuceneAnalysisConfigurer.class.getName());
|
||||||
|
properties.putIfAbsent(BackendSettings.backendKey(LuceneBackendSettings.LUCENE_VERSION), "LUCENE_CURRENT");
|
||||||
|
} else {
|
||||||
|
properties.putIfAbsent(HibernateOrmMapperSettings.ENABLED, false);
|
||||||
|
}
|
||||||
|
|
||||||
for (Map.Entry<String, Object> entry : jpaProps.entrySet()) {
|
for (Map.Entry<String, Object> entry : jpaProps.entrySet()) {
|
||||||
String strippedKey = entry.getKey().replace("spring.jpa.properties.", "");
|
String strippedKey = entry.getKey().replace("spring.jpa.properties.", "");
|
||||||
|
|||||||
@@ -60,7 +60,7 @@ public class ElasticsearchLastNR4IT {
|
|||||||
private IGenericClient ourClient;
|
private IGenericClient ourClient;
|
||||||
private FhirContext ourCtx;
|
private FhirContext ourCtx;
|
||||||
|
|
||||||
private static final String ELASTIC_VERSION = "7.10.0";
|
private static final String ELASTIC_VERSION = "7.10.1";
|
||||||
private static final String ELASTIC_IMAGE = "docker.elastic.co/elasticsearch/elasticsearch:" + ELASTIC_VERSION;
|
private static final String ELASTIC_IMAGE = "docker.elastic.co/elasticsearch/elasticsearch:" + ELASTIC_VERSION;
|
||||||
|
|
||||||
private static ElasticsearchContainer embeddedElastic;
|
private static ElasticsearchContainer embeddedElastic;
|
||||||
|
|||||||
@@ -75,10 +75,8 @@ public class ExampleServerR4IT {
|
|||||||
assertEquals(methodName, pt2.getName().get(0).getFamily());
|
assertEquals(methodName, pt2.getName().get(0).getFamily());
|
||||||
|
|
||||||
|
|
||||||
// Test MDM
|
|
||||||
|
|
||||||
// Wait until the MDM message has been processed
|
// Wait until the MDM message has been processed
|
||||||
await().until(() -> getPatients().size(), equalTo(3));
|
await().until(() -> getPatients().size(), equalTo(2));
|
||||||
List<Patient> persons = getPatients();
|
List<Patient> persons = getPatients();
|
||||||
Patient goldenRecord = persons.get(0);
|
Patient goldenRecord = persons.get(0);
|
||||||
|
|
||||||
@@ -165,6 +163,6 @@ public class ExampleServerR4IT {
|
|||||||
ourCtx.getRestfulClientFactory().setSocketTimeout(1200 * 1000);
|
ourCtx.getRestfulClientFactory().setSocketTimeout(1200 * 1000);
|
||||||
String ourServerBase = "http://localhost:" + port + "/fhir/";
|
String ourServerBase = "http://localhost:" + port + "/fhir/";
|
||||||
ourClient = ourCtx.newRestfulGenericClient(ourServerBase);
|
ourClient = ourCtx.newRestfulGenericClient(ourServerBase);
|
||||||
ourClient.registerInterceptor(new LoggingInterceptor(true));
|
// ourClient.registerInterceptor(new LoggingInterceptor(false));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user