Add Spring Cloud Refresh Context smoke tests

Closes gh-26
This commit is contained in:
Olga MaciaszekSharma
2023-09-14 18:29:13 +02:00
committed by Sébastien Deleuze
parent 888b9e0c02
commit dae8b34de9
25 changed files with 619 additions and 5 deletions

View File

@@ -12,11 +12,10 @@ class WebClientConfiguration {
@Bean
WebClient webClient(WebClient.Builder builder, ClientHttpConnector clientHttpConnector) {
// TODO Check why run-dev-container.sh is broken by the commented line below
//String host = env("HTTPBIN_HOST", "localhost");
// String host = env("HTTPBIN_HOST", "localhost");
String host = "localhost";
int port = env("HTTPBIN_PORT_8080", 8080);
return builder.baseUrl("http://%s:%d/".formatted(host, port))
.clientConnector(clientHttpConnector).build();
return builder.baseUrl("http://%s:%d/".formatted(host, port)).clientConnector(clientHttpConnector).build();
}
private static String env(String name, String def) {