Skip to content

@RouteURL does not inject URL of Openshift route #1055

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
piomin opened this issue Jun 5, 2018 · 0 comments
Open

@RouteURL does not inject URL of Openshift route #1055

piomin opened this issue Jun 5, 2018 · 0 comments

Comments

@piomin
Copy link

piomin commented Jun 5, 2018

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant