Hi,
The Fabric8 Kubernetes client project provides a MockServer which is created using the okhttp3.mockwebserver.MockWebServer
**
* A scriptable web server. Callers supply canned responses and the server replays them upon request
* in sequence.
*/
public final class MockWebServer extends ExternalResource implements Closeable {
According to the comment defined within the class MockWebServer of okhttp3, this class will create a response base on the caller supply (= HTTP Request)
Questions:
- Do we have another class able to mock Kube/OpenShift and where the API is validated ?
- Is it documented somewhere how to design such sentence "server.expect().withPath().andReturn(200, ....).once();" ?
Regards
Charles