Skip to content

WebSocketClientHandshakeException when trying to reproduce PodExecTest #5364

Answered by manusa
SoerenHenning asked this question in Q&A
Discussion options

You must be logged in to vote

No, this can't be done with the Kubernetes Mock Server.
There's an item in my TODO list to explore replacing the Mock Server backend with something that's not based on OkHttp, but so far I haven't found the time to do so.

Although we don't support it (yet?) you can look into our internal TestStandardHttpClientFactory which you can leverage by adding a test-jar dependency.

You can then use it to set up and test this scenario using similar expectations to those you provide when using the Mock Server. Check the UploadTest which you may be able to use as reference (it's actually testing a more complex scenario -2 execs-).

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@SoerenHenning
Comment options

@shawkins
Comment options

@manusa
Comment options

Answer selected by SoerenHenning
@SoerenHenning
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants