java.lang.AssertionError:
Expected: is "test.value"
but: was "prod.value"
Expected :test.value
Actual :prod.value
<Click to see difference>
at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20)
at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:8)
at io.helidon.microprofile.tests.testing.junit5.TestAddConfigBlockYaml.testValue(TestAddConfigBlockYaml.java:55)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
at java.base/java.lang.reflect.Method.invoke(Method.java:580)
Environment Details
Problem Description
When production config file exists, it is possible to override it with:
But
@AddConfigBlock
behaves differently and doesn't override existing properties.Steps to reproduce
Result: