Having bootstrap.yml in the main sources
spring:
application:
name: edgeService
cloud:
consul:
config:
enabled: false
prefix: config
profileSeparator: '@@'
watch:
enabled: false
discovery:
tags: [email protected]@
host: localhost
port: 8500
main:
banner-mode: 'off'
and having the bootstrap-ci.yml and @ActiveProfiles("ci") in the tests
spring:
application:
name: edgeService
cloud:
consul:
discovery:
scheme: http
enabled: false
config:
enabled: false
... (other app-specific configs removed)
stubrunner:
ids: com.acme:security.service:1.0.0:stubs
idsToServiceIds:
security.service: securityService
Doesn't lead to overriding the values from bootstrap.yml . In other words the app is always trying to connect to Consul.
Related issues:
spring-cloud/spring-cloud-contract#174
spring-cloud/spring-cloud-contract#141
Having
bootstrap.ymlin the main sourcesand having the
bootstrap-ci.ymland@ActiveProfiles("ci")in the testsDoesn't lead to overriding the values from
bootstrap.yml. In other words the app is always trying to connect to Consul.Related issues:
spring-cloud/spring-cloud-contract#174
spring-cloud/spring-cloud-contract#141