Re: Testing a HTTP GET from WAB

2019-11-16 Thread Jean-Baptiste Onofré
Hi yes, if you extend KarafTestSupport, it automatically pick a free port. So, you have to use getHttpPort() to get the actual port used. Regards JB On 16/11/2019 12:01, Massimo Bono wrote: > just tried with web:list and http:list: the output seems fine but when i > try to actually connect, I'm

Re: Testing a HTTP GET from WAB

2019-11-16 Thread Massimo Bono
just tried with web:list and http:list: the output seems fine but when i try to actually connect, I'm still experiencing Connection Refused. http:list > ID │ Servlet │ Servlet-Name │ State │ Alias │ > Url > > ┼───┼──┼─┼───

Re: Testing a HTTP GET from WAB

2019-11-16 Thread jb
HiIn the test, you can check with web:list and http:list if the status is deployed (and not deploying).Maybe you test the connection before the endpoint is actually started.You can see how we do it in the karaf examples itests.RegardsJBLe 16 nov. 2019 11:01, Massimo Bono a écrit :Hi,I've generated

Testing a HTTP GET from WAB

2019-11-16 Thread Massimo Bono
Hi, I've generated a wab file containing a simple "hello world" index.html. Inside this wab there is the standard manifest with the WebContext-Path manifest entry. When I manually start a karaf container, everything goes smoothly: I install the war feature (by using "feature:install war") and the