Closed kenfinnigan closed 1 year ago
/cc @geoand, @iocanel
Great idea!
Is there something we can do in Quarkus about this @iocanel or would this capability be added upstream?
cc @metacosm
Great idea!
Is there something we can do in Quarkus about this @iocanel or would this capability be added upstream?
AFAIR, the mock server does expose websocket related operation, so it is technically possible to use it to support watchers etc.
I tried to use the Kubernetes Server mock and this is now working as expected (the client is watching the pods and receiving events from the Kubernetes server mock).
I guess this has been fixed in Fabric8 Kubernetes Client, but I can't tell which version.
Description
I'm not sure if this would be a Quarkus thing or a fabric8 Kubernetes client thing but raising here first.
When using
@WithKubernetesTestServer
it would be great if it was possible to more realistically simulate the environment in tests, particularly in relation toPodWatcher
.If I have some Quarkus code that defines a
PodWatcher
, it would be fantastic if I could add a pod to the mock server:and have that trigger
PodWatcher.eventReceived()
!I have no knowledge of how the mocking is implemented to know whether this is even feasibly achievable, but I think it would be cool
Implementation ideas
No response