On Sun, Jan 26, 2020 at 8:15 PM Илья Шипицин <[email protected]> wrote:
> > > вс, 26 янв. 2020 г. в 23:12, William Dauchy <[email protected]>: > >> On Sun, Jan 26, 2020 at 7:08 PM Илья Шипицин <[email protected]> >> wrote: >> > such things are fragile. once fixed, they can silently break during >> further refactoring. >> > on other hand, such functions are good candidates to write unit tests. >> >> I considered it but to my knowledge, this is currently not possible >> with varnishtest, as we would need to mock a dns resolution, and make >> haproxy starts. I don't know whether there are other plans for haproxy >> tests. >> > > > I do not mean varnishtest here. > > varnishtest is "full stack functional test", it is too expensive. > > I mean lightweight unit testing, for example, cmocka. > > >> -- >> William >> > On a side note, I am working on building tests for the DNS in HAProxy using socat + script as a DNS server in vtest. I am at a point where dig can query my socat+script, then I'll try HAProxy, then I'll do the vtest integration. Baptiste

