typeclass for rest resource clients

1 Apr
2017
1 Apr
'17
9:34 a.m.
Hi, for a project of mine I want to abstract away the rest resources (client side) and provide a stub implementation of the backend that I can use for testing. I thought about a StateT based stub instance, however one of the methods besides the usual crud stuff should be `waitFor` so that I can wait for resources to reach a certain state. Very concretely I want to create kubernetes pods and have my code wait until the pod is `Running`. What would I have to throw into the mix in order to have a stub that creates a pod and only later changes the status to `Running`? Any thoughts, advice or hint? Best Jan
2971
Age (days ago)
2971
Last active (days ago)
0 comments
1 participants
participants (1)
-
Jan von Löwenstein