Skip to content

Commit 852ae42

Browse files
committed
fixes test failures after upgrading wiremock
1 parent 389521d commit 852ae42

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

extended/src/test/java/io/kubernetes/client/extended/generic/GenericKubernetesApiForCoreApiTest.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,9 @@ public void testReadTimeoutShouldThrowException() {
162162
.newBuilder()
163163
.readTimeout(1, TimeUnit.MILLISECONDS) // timeout everytime
164164
.build());
165+
stubFor(
166+
get(urlEqualTo("/api/v1/namespaces/foo/pods/test"))
167+
.willReturn(aResponse().withFixedDelay(99999).withStatus(200).withBody("")));
165168
podClient =
166169
new GenericKubernetesApi<>(V1Pod.class, V1PodList.class, "", "v1", "pods", apiClient);
167170
try {

extended/src/test/java/io/kubernetes/client/extended/generic/GenericKubernetesApiTest.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,9 @@ public void testReadTimeoutShouldThrowException() {
160160
.newBuilder()
161161
.readTimeout(1, TimeUnit.MILLISECONDS) // timeout everytime
162162
.build());
163+
stubFor(
164+
get(urlEqualTo("/apis/batch/v1/namespaces/foo/jobs/test"))
165+
.willReturn(aResponse().withFixedDelay(99999).withStatus(200).withBody("")));
163166
jobClient =
164167
new GenericKubernetesApi<>(V1Job.class, V1JobList.class, "batch", "v1", "jobs", apiClient);
165168
try {

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ public class OpenIDConnectAuthenticationTest {
3737
.httpsPort(PORT)
3838
.keystoreType("JKS")
3939
.keystorePath(OIDC_SERVER_KS_PATH)
40+
.keyManagerPassword("changeme")
4041
.keystorePassword("changeme"));
4142

4243
@Test

0 commit comments

Comments
 (0)