From 30268a7f6acc3b42269b1daf1e7cb3df90606f16 Mon Sep 17 00:00:00 2001 From: Rohan Kumar Date: Sat, 23 Dec 2023 01:31:45 +0530 Subject: [PATCH] test (kubernetes-tests) : Add missing `build()` for APIGroupListBuilder in mockserver expectation Signed-off-by: Rohan Kumar --- .../java/io/fabric8/openshift/client/server/mock/AdaptTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kubernetes-tests/src/test/java/io/fabric8/openshift/client/server/mock/AdaptTest.java b/kubernetes-tests/src/test/java/io/fabric8/openshift/client/server/mock/AdaptTest.java index 9402b6c0ff9..ae28302407a 100644 --- a/kubernetes-tests/src/test/java/io/fabric8/openshift/client/server/mock/AdaptTest.java +++ b/kubernetes-tests/src/test/java/io/fabric8/openshift/client/server/mock/AdaptTest.java @@ -89,7 +89,7 @@ public void setHeaders(Headers headers) { } }).once(); server.expect().withPath("/apis").andReturn(HttpURLConnection.HTTP_OK, new APIGroupListBuilder() - .addToGroups(new APIGroupBuilder().withName("security.internal.openshift.io").build())) + .addToGroups(new APIGroupBuilder().withName("security.internal.openshift.io").build()).build()) .once(); client.getConfiguration().setUsername("foo");