5050@ ExtendWith (OutputCaptureExtension .class )
5151class Fabric8ConfigMapErrorOnReadingSourceTests {
5252
53+ private static final boolean NAMESPACED_BATCHED = true ;
54+
5355 private static KubernetesMockServer mockServer ;
5456
5557 private static KubernetesClient mockClient ;
@@ -74,7 +76,7 @@ void namedSingleConfigMapFails() {
7476 mockServer .expect ().withPath (path ).andReturn (500 , "Internal Server Error" ).once ();
7577
7678 ConfigMapConfigProperties configMapConfigProperties = new ConfigMapConfigProperties (true , List .of (), List .of (),
77- Map .of (), true , name , namespace , false , true , false , RetryProperties .DEFAULT , false );
79+ Map .of (), true , name , namespace , false , true , false , RetryProperties .DEFAULT , NAMESPACED_BATCHED );
7880
7981 Fabric8ConfigMapPropertySourceLocator locator = new Fabric8ConfigMapPropertySourceLocator (mockClient ,
8082 configMapConfigProperties , new KubernetesNamespaceProvider (new MockEnvironment ()));
@@ -115,7 +117,7 @@ void namedTwoConfigMapsOneFails() {
115117
116118 ConfigMapConfigProperties configMapConfigProperties = new ConfigMapConfigProperties (true , List .of (),
117119 List .of (sourceOne , sourceTwo ), Map .of (), true , null , namespace , false , true , false ,
118- RetryProperties .DEFAULT , false );
120+ RetryProperties .DEFAULT , NAMESPACED_BATCHED );
119121
120122 Fabric8ConfigMapPropertySourceLocator locator = new Fabric8ConfigMapPropertySourceLocator (mockClient ,
121123 configMapConfigProperties , new KubernetesNamespaceProvider (new MockEnvironment ()));
@@ -150,7 +152,7 @@ void namedTwoConfigMapsBothFail() {
150152
151153 ConfigMapConfigProperties configMapConfigProperties = new ConfigMapConfigProperties (true , List .of (),
152154 List .of (sourceOne , sourceTwo ), Map .of (), true , null , namespace , false , true , false ,
153- RetryProperties .DEFAULT , false );
155+ RetryProperties .DEFAULT , NAMESPACED_BATCHED );
154156
155157 Fabric8ConfigMapPropertySourceLocator locator = new Fabric8ConfigMapPropertySourceLocator (mockClient ,
156158 configMapConfigProperties , new KubernetesNamespaceProvider (new MockEnvironment ()));
@@ -183,7 +185,7 @@ void labeledSingleConfigMapFails(CapturedOutput output) {
183185
184186 ConfigMapConfigProperties configMapConfigProperties = new ConfigMapConfigProperties (true , List .of (),
185187 List .of (configMapSource ), labels , true , null , namespace , false , true , false , RetryProperties .DEFAULT ,
186- false );
188+ NAMESPACED_BATCHED );
187189
188190 Fabric8ConfigMapPropertySourceLocator locator = new Fabric8ConfigMapPropertySourceLocator (mockClient ,
189191 configMapConfigProperties , new KubernetesNamespaceProvider (new MockEnvironment ()));
@@ -229,7 +231,7 @@ void labeledTwoConfigMapsOneFails(CapturedOutput output) {
229231
230232 ConfigMapConfigProperties configMapConfigProperties = new ConfigMapConfigProperties (true , List .of (),
231233 List .of (sourceOne , sourceTwo ), Map .of ("one" , "1" , "two" , "2" ), true , null , namespace , false , true ,
232- false , RetryProperties .DEFAULT , false );
234+ false , RetryProperties .DEFAULT , NAMESPACED_BATCHED );
233235
234236 Fabric8ConfigMapPropertySourceLocator locator = new Fabric8ConfigMapPropertySourceLocator (mockClient ,
235237 configMapConfigProperties , new KubernetesNamespaceProvider (new MockEnvironment ()));
@@ -269,7 +271,7 @@ void labeledTwoConfigMapsBothFail(CapturedOutput output) {
269271
270272 ConfigMapConfigProperties configMapConfigProperties = new ConfigMapConfigProperties (true , List .of (),
271273 List .of (sourceOne , sourceTwo ), Map .of ("one" , "1" , "two" , "2" ), true , null , namespace , false , true ,
272- false , RetryProperties .DEFAULT , false );
274+ false , RetryProperties .DEFAULT , NAMESPACED_BATCHED );
273275
274276 Fabric8ConfigMapPropertySourceLocator locator = new Fabric8ConfigMapPropertySourceLocator (mockClient ,
275277 configMapConfigProperties , new KubernetesNamespaceProvider (new MockEnvironment ()));
0 commit comments