Skip to content

Commit 9947014

Browse files
committed
fix
1 parent 8ce1488 commit 9947014

File tree

6 files changed

+11
-12
lines changed

6 files changed

+11
-12
lines changed

spring-cloud-kubernetes-client-config/src/test/java/org/springframework/cloud/kubernetes/client/config/reload_it/EventReloadConfigMapTest.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -201,8 +201,7 @@ AbstractEnvironment environment() {
201201
// KubernetesClientConfigMapPropertySource,
202202
// otherwise we can't properly test reload functionality
203203
ConfigMapConfigProperties configMapConfigProperties = new ConfigMapConfigProperties(true, List.of(),
204-
List.of(), Map.of(), true, CONFIG_MAP_NAME, NAMESPACE, false, true, FAIL_FAST,
205-
RetryProperties.DEFAULT);
204+
Map.of(), true, CONFIG_MAP_NAME, NAMESPACE, false, true, FAIL_FAST, RetryProperties.DEFAULT);
206205
KubernetesNamespaceProvider namespaceProvider = new KubernetesNamespaceProvider(mockEnvironment);
207206

208207
PropertySource<?> propertySource = new KubernetesClientConfigMapPropertySourceLocator(coreV1Api,
@@ -224,7 +223,7 @@ ConfigReloadProperties configReloadProperties() {
224223
@Bean
225224
@Primary
226225
ConfigMapConfigProperties configMapConfigProperties() {
227-
return new ConfigMapConfigProperties(true, List.of(), List.of(), Map.of(), true, CONFIG_MAP_NAME, NAMESPACE,
226+
return new ConfigMapConfigProperties(true, List.of(), Map.of(), true, CONFIG_MAP_NAME, NAMESPACE,
228227
false, true, FAIL_FAST, RetryProperties.DEFAULT);
229228
}
230229

spring-cloud-kubernetes-client-config/src/test/java/org/springframework/cloud/kubernetes/client/config/reload_it/EventReloadSecretTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ AbstractEnvironment environment() {
207207
// KubernetesClientConfigMapPropertySource,
208208
// otherwise we can't properly test reload functionality
209209
SecretsConfigProperties secretsConfigProperties = new SecretsConfigProperties(true, Map.of(), List.of(),
210-
List.of(), true, SECRET_NAME, NAMESPACE, false, true, FAIL_FAST, RetryProperties.DEFAULT);
210+
true, SECRET_NAME, NAMESPACE, false, true, FAIL_FAST, RetryProperties.DEFAULT);
211211
KubernetesNamespaceProvider namespaceProvider = new KubernetesNamespaceProvider(mockEnvironment);
212212

213213
PropertySource<?> propertySource = new KubernetesClientSecretsPropertySourceLocator(coreV1Api,

spring-cloud-kubernetes-fabric8-config/src/test/java/org/springframework/cloud/kubernetes/fabric8/config/reload_it/EventReloadConfigMapTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ AbstractEnvironment environment() {
162162
// simulate that environment already has a Fabric8ConfigMapPropertySource,
163163
// otherwise we can't properly test reload functionality
164164
ConfigMapConfigProperties configMapConfigProperties = new ConfigMapConfigProperties(true, List.of(),
165-
List.of(), Map.of(), true, CONFIG_MAP_NAME, NAMESPACE, false, true, true, RetryProperties.DEFAULT);
165+
Map.of(), true, CONFIG_MAP_NAME, NAMESPACE, false, true, true, RetryProperties.DEFAULT);
166166
KubernetesNamespaceProvider namespaceProvider = new KubernetesNamespaceProvider(mockEnvironment);
167167

168168
PropertySource<?> propertySource = new VisibleFabric8ConfigMapPropertySourceLocator(kubernetesClient,
@@ -184,7 +184,7 @@ ConfigReloadProperties configReloadProperties() {
184184
@Bean
185185
@Primary
186186
ConfigMapConfigProperties configMapConfigProperties() {
187-
return new ConfigMapConfigProperties(true, List.of(), List.of(), Map.of(), true, CONFIG_MAP_NAME, NAMESPACE,
187+
return new ConfigMapConfigProperties(true, List.of(), Map.of(), true, CONFIG_MAP_NAME, NAMESPACE,
188188
false, true, FAIL_FAST, RetryProperties.DEFAULT);
189189
}
190190

spring-cloud-kubernetes-fabric8-config/src/test/java/org/springframework/cloud/kubernetes/fabric8/config/reload_it/EventReloadSecretTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ AbstractEnvironment environment() {
169169
// Fabric8SecretsPropertySourceLocator,
170170
// otherwise we can't properly test reload functionality
171171
SecretsConfigProperties secretsConfigProperties = new SecretsConfigProperties(true, Map.of(), List.of(),
172-
List.of(), true, SECRET_NAME, NAMESPACE, false, true, true, RetryProperties.DEFAULT);
172+
true, SECRET_NAME, NAMESPACE, false, true, true, RetryProperties.DEFAULT);
173173
KubernetesNamespaceProvider namespaceProvider = new KubernetesNamespaceProvider(mockEnvironment);
174174

175175
PropertySource<?> propertySource = new VisibleFabric8SecretsPropertySourceLocator(kubernetesClient,
@@ -191,7 +191,7 @@ ConfigReloadProperties configReloadProperties() {
191191
@Bean
192192
@Primary
193193
SecretsConfigProperties secretsConfigProperties() {
194-
return new SecretsConfigProperties(true, Map.of(), List.of(), List.of(), true, SECRET_NAME, NAMESPACE,
194+
return new SecretsConfigProperties(true, Map.of(), List.of(), true, SECRET_NAME, NAMESPACE,
195195
false, true, FAIL_FAST, RetryProperties.DEFAULT);
196196
}
197197

spring-cloud-kubernetes-fabric8-config/src/test/java/org/springframework/cloud/kubernetes/fabric8/config/reload_it/PollingReloadConfigMapTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ AbstractEnvironment environment() {
152152
// simulate that environment already has a Fabric8ConfigMapPropertySource,
153153
// otherwise we can't properly test reload functionality
154154
ConfigMapConfigProperties configMapConfigProperties = new ConfigMapConfigProperties(true, List.of(),
155-
List.of(), Map.of(), true, CONFIG_MAP_NAME, NAMESPACE, false, true, true, RetryProperties.DEFAULT);
155+
Map.of(), true, CONFIG_MAP_NAME, NAMESPACE, false, true, true, RetryProperties.DEFAULT);
156156
KubernetesNamespaceProvider namespaceProvider = new KubernetesNamespaceProvider(mockEnvironment);
157157

158158
PropertySource<?> propertySource = new VisibleFabric8ConfigMapPropertySourceLocator(kubernetesClient,
@@ -174,7 +174,7 @@ ConfigReloadProperties configReloadProperties() {
174174
@Bean
175175
@Primary
176176
ConfigMapConfigProperties configMapConfigProperties() {
177-
return new ConfigMapConfigProperties(true, List.of(), List.of(), Map.of(), true, CONFIG_MAP_NAME, NAMESPACE,
177+
return new ConfigMapConfigProperties(true, List.of(), Map.of(), true, CONFIG_MAP_NAME, NAMESPACE,
178178
false, true, FAIL_FAST, RetryProperties.DEFAULT);
179179
}
180180

spring-cloud-kubernetes-fabric8-config/src/test/java/org/springframework/cloud/kubernetes/fabric8/config/reload_it/PollingReloadSecretTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ AbstractEnvironment environment() {
159159
// simulate that environment already has a Fabric8SecretsPropertySource,
160160
// otherwise we can't properly test reload functionality
161161
SecretsConfigProperties secretsConfigProperties = new SecretsConfigProperties(true, Map.of(), List.of(),
162-
List.of(), true, SECRET_NAME, NAMESPACE, false, true, true, RetryProperties.DEFAULT);
162+
true, SECRET_NAME, NAMESPACE, false, true, true, RetryProperties.DEFAULT);
163163
KubernetesNamespaceProvider namespaceProvider = new KubernetesNamespaceProvider(mockEnvironment);
164164

165165
PropertySource<?> propertySource = new VisibleFabric8SecretsPropertySourceLocator(kubernetesClient,
@@ -181,7 +181,7 @@ ConfigReloadProperties configReloadProperties() {
181181
@Bean
182182
@Primary
183183
SecretsConfigProperties secretsConfigProperties() {
184-
return new SecretsConfigProperties(true, Map.of(), List.of(), List.of(), true, SECRET_NAME, NAMESPACE,
184+
return new SecretsConfigProperties(true, Map.of(), List.of(), true, SECRET_NAME, NAMESPACE,
185185
false, true, FAIL_FAST, RetryProperties.DEFAULT);
186186
}
187187

0 commit comments

Comments
 (0)