Commit 94568f2f authored by Frank Dietrich's avatar Frank Dietrich
Browse files

change endpointuser for develop environment

parent e4d2adf1
......@@ -83,7 +83,6 @@
<version>2.2.5.RELEASE</version>
</dependency>
<!-- https://mvnrepository.com/artifact/org.springframework.integration/spring-integration-sftp -->
<dependency>
<groupId>org.springframework.integration</groupId>
<artifactId>spring-integration-sftp</artifactId>
......
......@@ -61,7 +61,6 @@ public class ImportService {
ForeignFailureMessageDto foreignFailureMessageDto = createForeignFailureMessageDto(samoOutage);
log.info("ForeignFailureMessageDto created metaId: " + foreignFailureMessageDto.getMetaId());
log.info("Succeeded");
//pushForeignFailure(foreignFailureMessageDto);
} catch (JsonProcessingException e) {
log.error("Error parsing SAMOOutage", e);
}
......
......@@ -15,15 +15,23 @@
package org.eclipse.openk.gridfailureinformation.samointerface.service;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.google.common.base.Charsets;
import com.google.common.io.Resources;
import org.apache.commons.io.FileUtils;
import org.eclipse.openk.gridfailureinformation.samointerface.SarisInterfaceApplication;
import org.eclipse.openk.gridfailureinformation.samointerface.config.TestConfiguration;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.boot.test.mock.mockito.MockBean;
import org.springframework.test.context.ActiveProfiles;
import org.springframework.test.context.ContextConfiguration;
import java.io.File;
import java.io.IOException;
import static org.junit.jupiter.api.Assertions.assertThrows;
import static org.junit.jupiter.api.Assertions.assertTrue;
import static org.mockito.ArgumentMatchers.any;
@SpringBootTest(classes = SarisInterfaceApplication.class)
......@@ -37,6 +45,19 @@ public class ImportServiceTest {
@Autowired
ObjectMapper objectMapper;
@Test
void shouldImportSAMOOutage() throws IOException {
String dateiname = "SAMO-ImportJsonFile.json";
File file = new File("src/test/resources/" + dateiname);
assertTrue(file.exists());
String demoOutag = FileUtils.readFileToString(file);
importService.importSAMOOutage(demoOutag);
}
/* @Test
public void shoulImportUserNotification() throws IOException {
......
......@@ -117,6 +117,10 @@ server:
cors:
corsEnabled: true
security.endpoint:
user: admin
password: admin
logging:
level:
root: INFO
......@@ -216,7 +220,7 @@ oracle:
ucp:
minPoolSize: 2
maxPoolSize: 10
# End Orale Config---------------------------------------------------
# End Oracle Config---------------------------------------------------
adressimport:
cleanup: true
......
Markdown is supported
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