Skip to content

Commit bc79b13

Browse files
committed
add application-test.yml to disable Spring Cloud Config during tests
1 parent 72b4bcd commit bc79b13

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

src/main/resources/application.yml

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
spring:
2+
config:
3+
import: "optional:configserver:"
+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
spring:
2+
cloud:
3+
config:
4+
enabled: false # Disables Spring Cloud Config during tests
5+
6+
server:
7+
port: 8083
8+
servlet:
9+
context-path: /od
10+
11+
distrib:
12+
bagstore:
13+
mode: local
14+
location: ${basedir}/src/test/resources
15+
baseurl: http://localhost/oar-distrb-service
16+
17+
logging:
18+
path: ${basedir}/target/surefire-reports

0 commit comments

Comments
 (0)