arquillian / arquillian-cube

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

@RouteURL does not inject URL of Openshift route #1055

Open piomin opened 6 years ago

piomin commented 6 years ago
@RouteURL does not inject URL of Openshift route

Here's my route returned by oc command

$ oc get route NAME HOST/PORT PATH SERVICES PORT TERMINATION WILDCARD customer-route customer-route-sample-deployment.192.168.99.100.nip.io /customer customer-service None

Here's the fragment of code, which waits for route and should inject into URL instance:

@RouteURL(value = "customer-route") @AwaitRoute(timeoutUnit = TimeUnit.MINUTES, timeout = 2, path = "/customer") private URL url;

URL object is empty: LOGGER.info("Url: ", url.getHost()); return "Url: "

I use Minishift version 3.9.0

Expected Behaviour

It should return http://customer-route-sample-deployment.192.168.99.100.nip.io/customer

The same result is with this fragment: @ArquillianResource OpenShiftAssistant assistant; LOGGER.info("Url: ", assistant.getRoute().get().getPath());

Only OpenShiftClient return list of route URLs properly @ArquillianResource OpenShiftClient client; client.routes().list().getItems()....

Current Behaviour

URL is empty