Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,8 @@ public void applyTo(Builder builder) {
// a fully readable ByteBuffer.
builder.allowBlockingCallsInside(
"io.fabric8.kubernetes.client.http.HttpClientReadableByteChannel", "doLockedAndSignal");
// StandardHttpRequest creates UUIDs using java.util.UUID.randomUUID() that uses SecureRandom.
// The method is temporarily allowed until the problem is resolved in the upstream.
// See: https://github.com/fabric8io/kubernetes-client/issues/5735
// TODO(ikhoon): Remove this once the issue is fixed.
// This only used in mock server.
builder.allowBlockingCallsInside(
"io.fabric8.kubernetes.client.http.StandardHttpRequest$Builder",
"build");
"io.fabric8.kubernetes.client.server.mock.WatchEventsListener", "onClosed");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should work, but I’d prefer not to add test-related code into the production codebase. What do you think about introducing a separate KubernetesTestBlockHoundIntegration class under the test directory?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds good :)
I will try it

}
}
Loading