I have a Springboot 2.4 application that is trying to run a test in a CD/CI environment without access to the configuration server specified in application.properties file.
I tried to provide alternative configurations for the missing values in a profile specific properties file.
Whenever the test starts to run, it seems that is trying to setup the spring context before loading the profile specific configuration and the test fails with a java.lang.IllegalStateException: Failed to load ApplicationContext exception because it doesn't have a property provided in the profile specific properties file.
Is there any workaround for this?