osgi-test icon indicating copy to clipboard operation
osgi-test copied to clipboard

waitForRemoval and wait for modification Method for ServiceAware

Open juergen-albert opened this issue 1 year ago • 3 comments

We often have the case that we change a configuration during a test and then check what changes to different serivces. Thus a Method to wait for removals with a count and also with modifications with a simple count would be very helpfull.

juergen-albert avatar Jan 31 '24 15:01 juergen-albert

A Promise based solution might be nice.

Or, the fabric8 java Kubernetes client has an interesting and flexible approach to a similar use-case io.fabric8.kubernetes.client.dsl.Waitable<T, P>

rotty3000 avatar Jan 31 '24 16:01 rotty3000

Since service come and go for several reasons it could be that Service is soon back after your waitForRemoval.

I would prefer to have a Waiter-Mechanism that can also wait for conditions like No ServiceEvents within a given duration.

stbischof avatar Feb 20 '24 20:02 stbischof