Open piomin opened 6 years ago
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
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()....
URL is empty
@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