Thanks Christopher for the merge.

On Sun, Jan 10, 2021 at 9:13 PM William Dauchy <[email protected]> wrote:
> Add a base test to start with something, even though this is not
> necessarily complete.
> Also make use of the recent REQUIRE_SERVICE option to exclude it from
> test list of it was not build with prometheus included.
>
> note: I thought it was possible to send multiple requests within the
> same client, but I'm getting "HTTP header is incomplete" from the second
> request

by the way, any explanation why putting multiple requests in the same
client fails with "HTTP header is incomplete"?
I don't like those things I can't explain :]

e.g:
client c1 -connect ${h1_stats_sock} {
      txreq -url "/metrics"
      rxresp
      expect resp.status == 200
      expect resp.body ~ ".*haproxy_process.*"
      expect resp.body ~ ".*haproxy_frontend.*"
      expect resp.body ~ ".*haproxy_backend.*"
      expect resp.body ~ ".*haproxy_server.*"

      txreq -url "/metrics?scope"
      rxresp
      expect resp.status == 400
} -run

-- 
William

Reply via email to