Skip to content

Commit f2119d0

Browse files
committed
fixes test compiliation
Signed-off-by: Min Jin <[email protected]>
1 parent 8fd1cf4 commit f2119d0

File tree

5 files changed

+15
-4
lines changed

5 files changed

+15
-4
lines changed

extended/src/test/java/io/kubernetes/client/extended/controller/builder/DefaultControllerBuilderTest.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ public void testBuildWatchShouldWorkIfInformerPresent() {
8585
null,
8686
params.resourceVersion,
8787
null,
88+
null,
8889
params.timeoutSeconds,
8990
params.watch,
9091
null);
@@ -156,6 +157,7 @@ public void testBuildWatchEventNotificationShouldWork() throws InterruptedExcept
156157
null,
157158
params.resourceVersion,
158159
null,
160+
null,
159161
params.timeoutSeconds,
160162
params.watch,
161163
null);

extended/src/test/java/io/kubernetes/client/extended/pager/PagerTest.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ public void testIteratorForEmptyList() throws IOException {
8686
(Pager.PagerParams param) -> {
8787
try {
8888
return api.listNamespaceCall(
89-
null, null, null, null, null, null, null, null, null, null, null);
89+
null, null, null, null, null, null, null, null, null, null, null, null);
9090
} catch (Exception e) {
9191
throw new RuntimeException(e);
9292
}
@@ -141,6 +141,7 @@ public void testPaginationForNamespaceListWithSuccessThreadSafely() throws IOExc
141141
null,
142142
null,
143143
null,
144+
null,
144145
null);
145146
} catch (Exception e) {
146147
throw new RuntimeException(e);
@@ -203,6 +204,7 @@ public void testPaginationForNamespaceListWithBadTokenFailure() throws IOExcepti
203204
null,
204205
null,
205206
null,
207+
null,
206208
null);
207209
} catch (Exception e) {
208210
throw new RuntimeException(e);
@@ -255,6 +257,7 @@ public void testPaginationForNamespaceListWithFieldSelectorFailure() throws IOEx
255257
null,
256258
null,
257259
null,
260+
null,
258261
null);
259262
} catch (Exception e) {
260263
throw new RuntimeException(e);

util/src/test/java/io/kubernetes/client/informer/SharedInformerFactoryTest.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ public void shutdownInformerFactoryInstantlyAfterStarting() throws ApiException
5959
null,
6060
params.resourceVersion,
6161
null,
62+
null,
6263
params.timeoutSeconds,
6364
params.watch,
6465
null);

util/src/test/java/io/kubernetes/client/informer/impl/DefaultSharedIndexInformerWireMockTest.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@ public void testNamespacedPodInformerNormalBehavior() throws InterruptedExceptio
145145
null,
146146
params.resourceVersion,
147147
null,
148+
null,
148149
params.timeoutSeconds,
149150
params.watch,
150151
null);
@@ -261,6 +262,7 @@ public void testAllNamespacedPodInformerNormalBehavior() throws InterruptedExcep
261262
null,
262263
params.resourceVersion,
263264
null,
265+
null,
264266
params.timeoutSeconds,
265267
params.watch,
266268
null);
@@ -396,6 +398,7 @@ public void testAllNamespacedPodInformerTransformFailure() throws InterruptedExc
396398
null,
397399
params.resourceVersion,
398400
null,
401+
null,
399402
params.timeoutSeconds,
400403
params.watch,
401404
null);
@@ -508,6 +511,7 @@ public void testInformerReListWatchOnWatchConflict() throws InterruptedException
508511
null,
509512
params.resourceVersion,
510513
null,
514+
null,
511515
params.timeoutSeconds,
512516
params.watch,
513517
null);
@@ -577,6 +581,7 @@ public void testInformerReListingOnListForbidden() throws InterruptedException {
577581
null,
578582
params.resourceVersion,
579583
null,
584+
null,
580585
params.timeoutSeconds,
581586
params.watch,
582587
null);

util/src/test/java/io/kubernetes/client/util/credentials/TokenFileAuthenticationTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,21 +59,21 @@ public void testTokenProvided() throws IOException, ApiException {
5959
get(urlPathEqualTo("/api/v1/pods")).willReturn(okForContentType("application/json", "{}")));
6060
CoreV1Api api = new CoreV1Api();
6161

62-
api.listPodForAllNamespaces(null, null, null, null, null, null, null, null, null, null);
62+
api.listPodForAllNamespaces(null, null, null, null, null, null, null, null, null, null, null);
6363
WireMock.verify(
6464
1,
6565
getRequestedFor(urlPathEqualTo("/api/v1/pods"))
6666
.withHeader("Authorization", equalTo("Bearer token1")));
6767

6868
this.auth.setFile(SERVICEACCOUNT_TOKEN2_PATH);
69-
api.listPodForAllNamespaces(null, null, null, null, null, null, null, null, null, null);
69+
api.listPodForAllNamespaces(null, null, null, null, null, null, null, null, null, null, null);
7070
WireMock.verify(
7171
2,
7272
getRequestedFor(urlPathEqualTo("/api/v1/pods"))
7373
.withHeader("Authorization", equalTo("Bearer token1")));
7474

7575
this.auth.setExpiry(Instant.now().minusSeconds(1));
76-
api.listPodForAllNamespaces(null, null, null, null, null, null, null, null, null, null);
76+
api.listPodForAllNamespaces(null, null, null, null, null, null, null, null, null, null, null);
7777
WireMock.verify(
7878
1,
7979
getRequestedFor(urlPathEqualTo("/api/v1/pods"))

0 commit comments

Comments
 (0)