Skip to content

Commit

Permalink
fix: add previous default config + checkstyle
Browse files Browse the repository at this point in the history
Signed-off-by: LE SAULNIER Kevin <kevin.lesaulnier@rte-france.com>
  • Loading branch information
LE SAULNIER Kevin committed Dec 5, 2024
1 parent 5600bbd commit 237b30f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@
/**
* @author Ghazwa Rehili <ghazwa.rehili at rte-france.com>
*/
public class ESConfig {
public final class ESConfig {
private ESConfig() {
throw new UnsupportedOperationException("This is a utility class and cannot be instantiated");
}

// It's not simple SPEL but this syntax is managed by both ES and Spring
public static final String DIRECTORY_ELEMENT_INFOS_INDEX_NAME = "#{@environment.getProperty('powsybl-ws.elasticsearch.index.prefix')}directory-elements";
Expand Down
2 changes: 2 additions & 0 deletions src/main/resources/application-local.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ spring:
elasticsearch:
uris:
- http://localhost:9200
connection-timeout: 60s
socket-timeout: 60s
## to fill if authentication is needed
# username:
# password:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.test.autoconfigure.web.servlet.AutoConfigureMockMvc;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.cloud.stream.binder.test.InputDestination;
Expand Down

0 comments on commit 237b30f

Please sign in to comment.