|
17 | 17 | package org.springframework.cloud.kubernetes.fabric8.client.istio; |
18 | 18 |
|
19 | 19 | import java.io.InputStream; |
20 | | -import java.time.Duration; |
21 | 20 | import java.util.List; |
22 | | -import java.util.Objects; |
23 | 21 |
|
24 | 22 | import io.fabric8.kubernetes.api.model.Service; |
25 | 23 | import io.fabric8.kubernetes.api.model.apps.Deployment; |
|
31 | 29 | import org.junit.jupiter.api.Test; |
32 | 30 | import org.testcontainers.containers.Container; |
33 | 31 | import org.testcontainers.k3s.K3sContainer; |
34 | | -import reactor.netty.http.client.HttpClient; |
35 | | -import reactor.util.retry.Retry; |
36 | | -import reactor.util.retry.RetryBackoffSpec; |
37 | 32 |
|
38 | 33 | import org.springframework.cloud.kubernetes.integration.tests.commons.Commons; |
39 | 34 | import org.springframework.cloud.kubernetes.integration.tests.commons.Images; |
40 | 35 | import org.springframework.cloud.kubernetes.integration.tests.commons.Phase; |
41 | 36 | import org.springframework.cloud.kubernetes.integration.tests.commons.fabric8_client.Util; |
42 | 37 | import org.springframework.http.HttpMethod; |
43 | | -import org.springframework.http.client.reactive.ReactorClientHttpConnector; |
44 | 38 | import org.springframework.web.reactive.function.client.WebClient; |
45 | 39 |
|
| 40 | +import static org.springframework.cloud.kubernetes.integration.tests.commons.Commons.builder; |
| 41 | +import static org.springframework.cloud.kubernetes.integration.tests.commons.Commons.retrySpec; |
| 42 | + |
46 | 43 | /** |
47 | 44 | * @author wind57 |
48 | 45 | */ |
@@ -133,14 +130,6 @@ private static void appManifests(Phase phase) { |
133 | 130 |
|
134 | 131 | } |
135 | 132 |
|
136 | | - private WebClient.Builder builder() { |
137 | | - return WebClient.builder().clientConnector(new ReactorClientHttpConnector(HttpClient.create())); |
138 | | - } |
139 | | - |
140 | | - private RetryBackoffSpec retrySpec() { |
141 | | - return Retry.fixedDelay(15, Duration.ofSeconds(1)).filter(Objects::nonNull); |
142 | | - } |
143 | | - |
144 | 133 | private static String istioctlPodName() { |
145 | 134 | try { |
146 | 135 | return K3S |
|
0 commit comments