Added additional scenario to reflect scenario mentioned in spring-feature-flags
(even though the article does not point to any module in the codebase)
This commit is contained in:
parent
1b127b9b00
commit
b33fd1ee9c
|
@ -11,6 +11,7 @@ app.name=MyApp
|
||||||
app.description=${app.name} is a Spring Boot application
|
app.description=${app.name} is a Spring Boot application
|
||||||
logging.file.name=myapplication.log
|
logging.file.name=myapplication.log
|
||||||
bael.property=defaultValue
|
bael.property=defaultValue
|
||||||
|
bael.otherProperty=defaultOtherValue
|
||||||
#---
|
#---
|
||||||
spring.config.activate.on-profile=multidocument-dev
|
spring.config.activate.on-profile=multidocument-dev
|
||||||
spring.datasource.password=password
|
spring.datasource.password=password
|
||||||
|
@ -18,6 +19,9 @@ spring.datasource.url=jdbc:h2:dev
|
||||||
spring.datasource.username=SA
|
spring.datasource.username=SA
|
||||||
bael.property=devValue
|
bael.property=devValue
|
||||||
#---
|
#---
|
||||||
|
spring.config.activate.on-profile=multidocument-integration-extension
|
||||||
|
bael.otherProperty=integrationExtensionOtherValue
|
||||||
|
#---
|
||||||
spring.config.activate.on-profile=multidocument-prod
|
spring.config.activate.on-profile=multidocument-prod
|
||||||
spring.datasource.password=password
|
spring.datasource.password=password
|
||||||
spring.datasource.url=jdbc:h2:prod
|
spring.datasource.url=jdbc:h2:prod
|
||||||
|
|
|
@ -2,6 +2,9 @@ bael:
|
||||||
root-level-property: defaultRootLevelValue
|
root-level-property: defaultRootLevelValue
|
||||||
---
|
---
|
||||||
spring:
|
spring:
|
||||||
|
profiles:
|
||||||
|
group:
|
||||||
|
multidocument-integration: multidocument-integration-extension
|
||||||
config:
|
config:
|
||||||
activate:
|
activate:
|
||||||
on-profile: multidocument-staging
|
on-profile: multidocument-staging
|
||||||
|
|
|
@ -17,12 +17,16 @@ public class IntegrationMultidocumentFilesIntegrationTest {
|
||||||
@Value("${bael.property}")
|
@Value("${bael.property}")
|
||||||
private String baelCustomProperty;
|
private String baelCustomProperty;
|
||||||
|
|
||||||
|
@Value("${bael.otherProperty}")
|
||||||
|
private String baelCustomOtherProperty;
|
||||||
|
|
||||||
@Value("${bael.root-level-property}")
|
@Value("${bael.root-level-property}")
|
||||||
private String baelRootProperty;
|
private String baelRootProperty;
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void givenProductionProfileActive_whenApplicationStarts_thenDefaultPropertiesUser() {
|
public void givenProductionProfileActive_whenApplicationStarts_thenDefaultPropertiesUser() {
|
||||||
assertThat(baelCustomProperty).isEqualTo("integrationValue");
|
assertThat(baelCustomProperty).isEqualTo("integrationValue");
|
||||||
|
assertThat(baelCustomOtherProperty).isEqualTo("integrationExtensionOtherValue");
|
||||||
assertThat(baelRootProperty).isEqualTo("defaultRootLevelValue");
|
assertThat(baelRootProperty).isEqualTo("defaultRootLevelValue");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue