Fixes ordering with local and remote sources with profiles.
If the context is associated with a profile, the Option.PROFILE_SPECIFIC is added. Fixes gh-706
This commit is contained in:
@@ -78,4 +78,11 @@ public class ConsulTestcontainers implements ApplicationContextInitializer<Confi
|
||||
return new ConsulClient(getHost(), getPort());
|
||||
}
|
||||
|
||||
public static void initializeSystemProperties() {
|
||||
start();
|
||||
|
||||
System.setProperty(ConsulProperties.PREFIX + ".port", getPort().toString());
|
||||
System.setProperty(ConsulProperties.PREFIX + ".host", getHost());
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user