This is the codeAbility Sharing Platform! Learn more about the codeAbility Sharing Platform.

Skip to content
Snippets Groups Projects
Commit 33b76cce authored by Michael Breu's avatar Michael Breu :speech_balloon:
Browse files

Still testing Tests

parent 4e5a045c
Branches
1 merge request!17Initial Merge to Prepare Release 1.0.0
......@@ -48,6 +48,7 @@ public class ElasticSearchTestServerConfiguration {
public synchronized void startTestNode() throws IOException, NodeValidationException {
if(testNode==null) {
LOGGER.info("Starting ES Test Node");
try {
File f = File.createTempFile("tobedeleted", "txt");
Settings s = Settings.builder().put("http.port", "29200")
.put("node.name", "esSharingTest")
......@@ -65,6 +66,9 @@ public class ElasticSearchTestServerConfiguration {
setUpMetaDataIndex();
setUpContent();
LOGGER.info("Started ES Test Node");
} catch (Throwable t) {
LOGGER.info("ES Test Node crashed: ", t);
}
} else {
LOGGER.info("Node already started");
}
......
......@@ -36,12 +36,12 @@ public class SearchServiceIT {
@Autowired
private SearchService searchService;
// @BeforeAll
// public static void setUpESServer() throws IOException, NodeValidationException {
// LOGGER.info("Starting es test server");
// ElasticSearchTestServerConfiguration.getTestInstance().startTestNode();
// LOGGER.info("Started es test server");
// }
@BeforeAll
public static void setUpESServer() throws IOException, NodeValidationException {
LOGGER.info("Starting es test server");
ElasticSearchTestServerConfiguration.getTestInstance().startTestNode();
LOGGER.info("Started es test server");
}
@Test
......
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