arquillian / arquillian-cube

Control (docker, kubernetes, openshift) containers in your tests with ease!
http://arquillian.org/arquillian-cube/
120 stars 98 forks source link

provide an option to repeat @AwaitRoute several times #1065

Closed Ladicek closed 6 years ago

Ladicek commented 6 years ago
Issue Overview

In some OpenShift clusters, particularly OpenShift Online Starter, it takes a while for the route to "stabilize" and during that timeframe, the route intermittently succeeds and fails. I'd like to enhance the @AwaitRoute mechanism to support a configurable amount of repetitions -- the route must respond successfully several times in a row to be considered available. Default number of repetitions would be 1, i.e. current behavior.

Expected Behaviour

Be able to specify that the route must respond successfully e.g. 20 times in a row before it's considered available by the @AwaitRoute mechanism.

Current Behaviour

The @AwaitRoute mechanism only waits for the first successful response.

Steps To Reproduce
  1. oc login into an OpenShift Online Starter cluster
  2. mvn clean verify -Popenshift,openshift-it in a local clone of e.g. https://github.com/openshiftio-vertx-boosters/vertx-http-booster
Additional Information

I will be submitting an issue report to the OpenShift Online team as well.