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:
spencergibb
2021-05-05 20:08:24 -04:00
parent 77416811bf
commit d6ab8a64b6
11 changed files with 237 additions and 127 deletions

View File

@@ -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());
}
}