<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Peter,<div class="">Based on our needs, QE has created one. A web-fixture to simulate down sites so we can test availability.</div><div class=""><br class=""></div><div class="">Thanks Viet!</div><div class=""><br class=""></div><div class="">Attaching the recent message from Viet...</div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">I'm pleased to announce first version of the Web Test Fixture is up and running. &nbsp;It's a web server (nginx) running inside Docker that can simulate a specific HTTP response code as well simple cron-like availability. &nbsp;<br class=""><br class="">Please let me know whether this is useful for Hawkular URL monitoring and what you want to see next. For example, a. simulate slow response time, b. cycle between http status codes, etc.&nbsp;<br class=""><br class="">Viet Nguyen<br class=""><br class="">-----<br class=""><br class="">Example usage:<br class=""><br class="">[1] Launch a web fixture<br class="">docker run -d -p 8999:8080 hawkularqe/web-fixture<br class=""><br class=""># get custom http code (replace 503 with any valid status code)<br class="">curl -I&nbsp;<a href="http://localhost:8999/http?return=503" class="">http://localhost:8999/http?return=503</a><br class="">--&gt; HTTP/1.1 503 Service Temporarily Unavailable<br class=""><br class="">[2] Launch a mostly-available fixture - server goes offline for 10 seconds every minute<br class="">docker run -p 8999:8080 -e "DURATION=50s" -e "CRON_EXP=* * * * *" hawkularqe/web-fixture<br class=""><br class=""><br class="">[1] and [2] in the example above are also running on public OS1:<br class="">1.&nbsp;<a href="http://209.132.179.82:50001" class="">http://209.132.179.82:50001</a><br class="">2.&nbsp;<a href="http://209.132.179.82:50002" class="">http://209.132.179.82:50002</a><br class=""><br class=""><br class="">Github:<br class=""><a href="https://github.com/Hawkular-QE/web-fixture" class="">https://github.com/Hawkular-QE/web-fixture</a></div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On 5 Jun 2015, at 07:09, Peter Palaga &lt;<a href="mailto:ppalaga@redhat.com" class="">ppalaga@redhat.com</a>&gt; wrote:</div><br class="Apple-interchange-newline"><div class="">Hi *,<br class=""><br class="">it happened today: <a href="http://perfcake.org/" class="">http://perfcake.org/</a> - one of the sites we unit-test <br class="">Pinger against is down and therefore the tests are failing.<br class=""><br class="">Can anybody recommend a solution for mocking an HTTP Server?<br class=""><br class=""><a href="http://wiremock.org/" class="">http://wiremock.org/</a> is the first result on Google and I am going to <br class="">have a look at it.<br class=""><br class="">Thanks,<br class=""><br class="">Peter<br class="">_______________________________________________<br class="">hawkular-dev mailing list<br class=""><a href="mailto:hawkular-dev@lists.jboss.org" class="">hawkular-dev@lists.jboss.org</a><br class="">https://lists.jboss.org/mailman/listinfo/hawkular-dev<br class=""></div></blockquote></div><br class=""></div></body></html>