]
Work on ARQ-2001 started by Gerhard Poul.
-----------------------------------------
Log status code in WLPRestClient.isServerUp()
---------------------------------------------
Key: ARQ-2001
URL:
https://issues.jboss.org/browse/ARQ-2001
Project: Arquillian
Issue Type: Enhancement
Components: WebSphere Containers
Reporter: Paul Holding
Assignee: Gerhard Poul
The WLPRestClient.isServerUp() method doesn't log the status code returned when the
following line of code is executed
{code:java}
HttpResponse result = executor.execute(Request.Get(hostName)).returnResponse();
{code}
The lack of logging makes is impossible to tell why the isServerUp() check failure
occurred and the only information returned is a LifecycleException thrown by
WLPRemoteContainer with the text "Remote server is not started". This can be
misleading as the server may be up but something else is wrong such as an authentication
failure.
Adding something similar to the logging in WLPRestClient.deploy(File archive) would allow
the HTTP status code to be recorded and make troubleshooting a lot easier.