Skip to content

Can't override properties from bootstrap.yml in profile specific bootstrap file #156

@marcingrzejszczak

Description

@marcingrzejszczak

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions