Re: How to "unit" test HAProxy configurations (and HTTP servers in general)

2019-12-19 Thread Ciprian Dorin Craciun
On Thu, Dec 19, 2019 at 7:08 AM Илья Шипицин wrote: >> Really I would have expected to find a lightweight and generic Python >> or Ruby "framework" that allows one to write such tests in a more >> "programmatic" manner... :( > > python mechanize ? Looking at the documentation,

Re: How to "unit" test HAProxy configurations (and HTTP servers in general)

2019-12-19 Thread Ciprian Dorin Craciun
On Thu, Dec 19, 2019 at 9:10 AM Jarno Huuskonen wrote: > > So my question to the HAProxy community is if anyone knows / uses a > > generic HTTP unit testing framework. > > Have you looked into varnishtest(vtest) ? There're examples in haproxy source > reg-tests directory. Interesting; for

Re: How to "unit" test HAProxy configurations (and HTTP servers in general)

2019-12-18 Thread Jarno Huuskonen
Hi, On Wed, Dec 18, Ciprian Dorin Craciun wrote: > Hello all! > > [First of all this question isn't only HAProxy specific, but can be > extended to any HTTP server (including Apache, Nginx, and any other > web application out there); however I think it is especially > important for HAProxy

Re: How to "unit" test HAProxy configurations (and HTTP servers in general)

2019-12-18 Thread Илья Шипицин
чт, 19 дек. 2019 г. в 01:07, Ciprian Dorin Craciun < ciprian.crac...@gmail.com>: > On Wed, Dec 18, 2019 at 8:23 PM Илья Шипицин wrote: > >> redirects are easy to test. using any framework. > > > > for example, jmeter (or any other http query tool) > > > >> * apply authentication for `admin`; >

Re: How to "unit" test HAProxy configurations (and HTTP servers in general)

2019-12-18 Thread Ciprian Dorin Craciun
On Wed, Dec 18, 2019 at 8:23 PM Илья Шипицин wrote: >> redirects are easy to test. using any framework. > > for example, jmeter (or any other http query tool) > >> * apply authentication for `admin`; >> * force some caching headers for `web`, `static` and `media`; > > same here. assert in jmeter

Re: How to "unit" test HAProxy configurations (and HTTP servers in general)

2019-12-18 Thread Илья Шипицин
ср, 18 дек. 2019 г. в 22:34, Ciprian Dorin Craciun < ciprian.crac...@gmail.com>: > On Wed, Dec 18, 2019 at 6:47 PM Илья Шипицин wrote: > > you are talking about testing ACL. can you provide some example ? > > > So let's assume I have a given HAProxy configuration, full of ACL's > and rules, that

Re: How to "unit" test HAProxy configurations (and HTTP servers in general)

2019-12-18 Thread Ciprian Dorin Craciun
On Wed, Dec 18, 2019 at 6:47 PM Илья Шипицин wrote: > you are talking about testing ACL. can you provide some example ? So let's assume I have a given HAProxy configuration, full of ACL's and rules, that apply certain "firewalling", authentication / authorization, "mangling" operations to the

Re: How to "unit" test HAProxy configurations (and HTTP servers in general)

2019-12-18 Thread Илья Шипицин
ср, 18 дек. 2019 г. в 21:16, Ciprian Dorin Craciun < ciprian.crac...@gmail.com>: > Hello all! > > [First of all this question isn't only HAProxy specific, but can be > extended to any HTTP server (including Apache, Nginx, and any other > web application out there); however I think it is

How to "unit" test HAProxy configurations (and HTTP servers in general)

2019-12-18 Thread Ciprian Dorin Craciun
Hello all! [First of all this question isn't only HAProxy specific, but can be extended to any HTTP server (including Apache, Nginx, and any other web application out there); however I think it is especially important for HAProxy given how many HTTP-routing / mangling capabilities it has.] I