From: Frédéric Lécaille
Hi ML,
Here is a little patch to fix the reg tests with missing REQUIRE_VERSION
declarations.
Fred.
Frédéric Lécaille (1):
REGTEST: Missing REQUIRE_VERSION declarations.
reg-tests/checks/s1.vtc | 1 +
reg-tests/peers/s_basic_sync.vtc | 2 ++
reg-tes
From: Frédéric Lécaille
checks/s1.vtc needs support for "srvrecord" which came with 1.8 version.
peers/s_basic_sync.vtc and s_tls_basic_sync.vtc need support for "server"
keyword usage in "peers" section which came with 2.0 version.
---
reg-tests/checks/s1.vtc | 1 +
reg-tests/p
This is a better patch to update only reg-tests/peers/s_tls_basic_sync.vtc:
We add a 4th haproxy process seen as peer D, without any encryption enabled for
all the four peers A,B,C and D.
On the three first haproxy instances side A,B, C, we declare D with ssl/tls
activated. Consequently D cannot b
From: Frédéric Lécaille
---
reg-tests/peers/common.pem | 1 +
reg-tests/peers/s_basic_sync.vtc | 115 +++
reg-tests/peers/s_tls_basic_sync.vtc | 150 +++
3 files changed, 266 insertions(+)
create mode 12 reg-tests/peers
From: Frédéric Lécaille
Hi ML,
Here are new reg tests for peers.
They are supposed to test the SSL/TLS support for haproxy peer protocol.
(see https://www.mail-archive.com/haproxy@formilux.org/msg32438.html).
Furthermore, vtest fixes are required:
https://github.com/vtest/VTest/pull/9
Let's wai
From: Frédéric Lécaille
---
reg-tests/peers/common.pem | 1 +
reg-tests/peers/s_basic_sync.vtc | 115 ++
reg-tests/peers/s_tls_basic_sync.vtc | 118 +++
3 files changed, 234 insertions(+)
create mode 12 reg-test
From: Frédéric Lécaille
This patch adds pointer to a struct server to peer structure which
is initialized after having parsed a remote "peer" line.
After having parsed all peers section we run ->prepare_srv to initialize
all SSL/TLS stuff of remote perr (or server).
Remaining thing to do to com
From: Frédéric Lécaille
With this patch the "server" lines do not parse anymore the bind address
for local peers.
We do not use anymore list_for_each_entry() to set the "peers" section
listeners parameter because there is only one listener by "peers" section.
---
include/proto/server.h | 2 +-
From: Frédéric Lécaille
Create init_peers_frontend() function to allocate and initialize
the frontend of "peers" sections (->peers_fe) so that to reuse it later.
May be backported to 1.5 and newer.
---
src/cfgparse.c | 34 ++
1 file changed, 26 insertions(+), 8 d
From: Frédéric Lécaille
With this patch "default-server" lines are supported in "peers" sections
to setup the default settings of peers which are from now setup
when parsing both "peer" and "server" lines.
May be backported to 1.5 and newer.
---
src/cfgparse.c | 88 +++--
From: Frédéric Lécaille
This patch makes "bind" work in "peers" sections. All "bind" settings
are supported, excepted ip:port parameters which are provided on
"peer" (or server) line matching the local peer.
After having parsed the configuration files ->prepare_bind_conf is run
to initialize all
From: Frédéric Lécaille
Even if not already the case, we suppose that the frontend "peers" section
may have been already initialized outside of "peer" line, we seperate
their initializations from their binding initializations.
May be backported to 1.5 and newer.
---
src/cfgparse.c | 50
From: Frédéric Lécaille
---
doc/configuration.txt | 40 +++-
1 file changed, 39 insertions(+), 1 deletion(-)
diff --git a/doc/configuration.txt b/doc/configuration.txt
index 888515fb..960f1948 100644
--- a/doc/configuration.txt
+++ b/doc/configuration.txt
@@
From: Frédéric Lécaille
May help the series of patches to be reviewed.
May be backported to 1.5 and newer.
---
src/cfgparse.c | 72 +-
1 file changed, 36 insertions(+), 36 deletions(-)
diff --git a/src/cfgparse.c b/src/cfgparse.c
index 66
From: Frédéric Lécaille
Make init_peers_frontend() be callable without having to check if
there is something to do or not.
May be backported to 1.5 and newer.
---
src/cfgparse.c | 7 +--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/src/cfgparse.c b/src/cfgparse.c
index 22a3
From: Frédéric Lécaille
Use ->local "peers" struct member to flag a "peers" section frontend
has being initialized. This is to be able to initialize the frontend
of "peers" sections on lines different from "peer" lines.
May be backported to 1.5 and newer.
---
src/cfgparse.c | 17 +--
From: Frédéric Lécaille
Avoid useless code indentation.
May be backported to 1.5 and newer.
---
src/cfgparse.c | 6 --
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/cfgparse.c b/src/cfgparse.c
index 6fde7c9f..6670a861 100644
--- a/src/cfgparse.c
+++ b/src/cfgparse.c
@@ -
From: Frédéric Lécaille
Make "bind" line also parse the local peer bind address.
Add "default-bind" option to parse the binding options excepted the bind
address.
Prevent "bind" lines to be mixed with "peer" line to help in handling the
migration.
---
src/cfgparse.c | 153 +
From: Frédéric Lécaille
Hi ML, Willy,
Here is a new series of patches for this feature with Willy's remarks
taken into an account. Was easy to break something ;) but I think
this series does not break the current usage of "peers" section.
I prefered work from the previous series without rebasin
From: Frédéric Lécaille
Create init_peers_frontend() function to allocate and initialize
the frontend of "peers" sections (->peers_fe) so that to reuse it later.
May be backported to 1.5 and newer.
---
src/cfgparse.c | 34 ++
1 file changed, 26 insertions(+), 8 d
From: Frédéric Lécaille
Make init_peers_frontend() be callable without having to check if
there is something to do or not.
May be backported to 1.5 and newer.
---
src/cfgparse.c | 7 +--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/src/cfgparse.c b/src/cfgparse.c
index 22a3
From: Frédéric Lécaille
Even if not already the case, we suppose that the frontend "peers" section
may have been already initialized outside of "peer" line, we seperate
their initializations from their binding initializations.
May be backported to 1.5 and newer.
---
src/cfgparse.c | 50
From: Frédéric Lécaille
---
doc/configuration.txt | 23 ++-
1 file changed, 22 insertions(+), 1 deletion(-)
diff --git a/doc/configuration.txt b/doc/configuration.txt
index 888515fb..d55e4bd3 100644
--- a/doc/configuration.txt
+++ b/doc/configuration.txt
@@ -1928,6 +1928,12
From: Frédéric Lécaille
Use ->local "peers" struct member to flag a "peers" section frontend
has being initialized. This is to be able to initialize the frontend
of "peers" sections on lines different from "peer" lines.
May be backported to 1.5 and newer.
---
src/cfgparse.c | 17 +--
From: Frédéric Lécaille
With this patch "default-server" lines are supported in "peers" sections
to setup the default settings of peers which are from now setup
when parsing both "peer" and "server" lines.
May be backported to 1.5 and newer.
---
src/cfgparse.c | 88 +++--
From: Frédéric Lécaille
May help the series of patches to be reviewed.
May be backported to 1.5 and newer.
---
src/cfgparse.c | 72 +-
1 file changed, 36 insertions(+), 36 deletions(-)
diff --git a/src/cfgparse.c b/src/cfgparse.c
index 66
From: Frédéric Lécaille
This patch adds pointer to a struct server to peer structure which
is initialized after having parsed a remote "peer" line.
After having parsed all peers section we run ->prepare_srv to initialize
all SSL/TLS stuff of remote perr (or server).
Remaining thing to do to com
From: Frédéric Lécaille
Avoid useless code indentation.
May be backported to 1.5 and newer.
---
src/cfgparse.c | 6 --
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/cfgparse.c b/src/cfgparse.c
index 6fde7c9f..6670a861 100644
--- a/src/cfgparse.c
+++ b/src/cfgparse.c
@@ -
From: Frédéric Lécaille
Hi ML,
With this series of patches we add the SSL/TLS support to haproxy peers.
Regards,
Fred.
Frédéric Lécaille (10):
MINOR: cfgparse: Extract some code to be re-used.
CLEANUP: cfgparse: Return asap from cfg_parse_peers().
CLEANUP: cfgparse: Code reindentation.
From: Frédéric Lécaille
This patch makes "bind" work in "peers" sections. All "bind" settings
are supported, excepted ip:port parameters which are provided on
"peer" (or server) line matching the local peer.
After having parsed the configuration files ->prepare_bind_conf is run
to initialize all
From: Frédéric Lécaille
This is a first patch to switch from varnishtest to new standalone
varnish cache reg testing program: vtest.
More information may be found here:
https://github.com/vtest/VTest
https://varnish-cache.org/docs/trunk/reference/varnishtest.html
https://varnish-cache.org/docs/
From: Frédéric Lécaille
Hi ML,
With these patches, haproxy switches to the new varnish cache reg testing tool
named vtest, formerly known as varnishtest.
From the user point of view, there is no very much differences compared to the
usage of varnishtest. Before we started the reg testing proces
From: Frédéric Lécaille
This patch replace the usage of the formerly varnish cache reg
testing program, name varnishtest by the new standalone one: vtest.
---
Makefile| 10 +-
scripts/run-regtests.sh | 28 ++--
2 files changed, 19 insertions(+), 19
From: Frédéric Lécaille
With this patch when the test fails it may be useful to collect additional
information
coming from varnishtes especially when this latter aborts.
For instance without this patch reg-tests/mailers/k_healthcheckmail.vtc does not
produce relevant information.
$ VARNISH
From: Frédéric Lécaille
When the reg tests fail, it may be useful to display additional information
coming from varnishtest, especially when this latter aborts.
In such case, the test output may be made of lines prefixed by "* diag"
string.
---
scripts/run-regtests.sh | 2 +-
1 file changed,
From: Frédéric Lécaille
---
reg-tests/http-capture/h0.vtc | 92 +++
1 file changed, 92 insertions(+)
create mode 100644 reg-tests/http-capture/h0.vtc
diff --git a/reg-tests/http-capture/h0.vtc
b/reg-tests/http-capture/h0.vtc
new file mode 10
From: Frédéric Lécaille
Hi ML,
Here is a basic test to check that this is the last occurence of
request/response
headers which are sent to the logs.
Fred.
Frédéric Lécaille (1):
REGTEST: "capture (request|response)" regtest.
reg-tests/http-capture/h0.vtc | 92 +
From: Frédéric Lécaille
---
reg-tests/http-messaging/h3.vtc | 78 +
1 file changed, 78 insertions(+)
create mode 100644 reg-tests/http-messaging/h3.vtc
diff --git a/reg-tests/http-messaging/h3.vtc
b/reg-tests/http-messaging/h3.vtc
new file m
From: Frédéric Lécaille
Fred.
Frédéric Lécaille (1):
REGTEST: A basic test for "http-buffer-request"
reg-tests/http-messaging/h3.vtc | 78 +
1 file changed, 78 insertions(+)
create mode 100644 reg-tests/http-messaging/h3.vtc
--
2.11.0
From: Frédéric Lécaille
This patch makes at least this test pass on FreeBSD systems.
The regex to be matched with syslog message was too much Linux specific.
---
reg-tests/checks/s3.vtc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/reg-tests/checks/s3.vtc b/reg-test
From: Frédéric Lécaille
This patch excludes freebsd target for health-checks reg tests
which rely on TCP_DEFER_ACCEPT usage. This is specific to Linux.
---
reg-tests/checks/s0.vtc | 1 +
reg-tests/checks/s1.vtc | 2 ++
reg-tests/checks/s2.vtc | 1 +
3 files changed, 4 insertions(+)
From: Frédéric Lécaille
---
reg-tests/connection/b0.vtc | 4 ++--
reg-tests/seamless-reload/b0.vtc | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/reg-tests/connection/b0.vtc b/reg-tests/connection/b0.vtc
index 50bb7494..9b36c45a 100644
--- a/reg-tes
From: Frédéric Lécaille
Hi ML,
Here is a series of patches to fix a few reg testing issues.
Fred.
Frédéric Lécaille (4):
REGTEST: Fix a typo about barrier type.
REGTEST: Be less Linux specific with a syslog regex.
REGTEST: Missing enclosing quotes for ${tmpdir} macro.
REGTEST: Exclude f
From: Frédéric Lécaille
Fix a typo, furthermore there is no reason to use a barrier with "sock" as type
which are more varnish cache specific: used to synchronize the VCL.
---
reg-tests/checks/s0.vtc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/reg-tests/checks/s0.
From: Frédéric Lécaille
With this patch we can provide a list of argument to reg-tests target.
Useful to run reg tests for a list of VTC files like that:
$ VARNISHTEST_PROGRAM=<...> make reg-tests reg-tests/checks/*.vtc
---
Makefile | 8 +++-
1 file changed, 7 insertions(+), 1 deletion(
From: Frédéric Lécaille
Here is a little patch to make reg-tests target able of taking
arguments. May be useful during debugging steps.
Thanks to
https://stackoverflow.com/questions/2214575/passing-arguments-to-make-run
for this recipe.
Frédéric Lécaille (1):
REGTEST: Make reg-tests target su
From: Frédéric Lécaille
This script runs two tests. One with "httpchk" over SSL/TLS and another
one with "check-ssl" option. As varnishtest does not support SSL/TLS
we use two haproxy processes to run these tests. h2 haproxy process
be2 and be4 backends declare one server each wich are the fronte
From: Frédéric Lécaille
This script tests the "cookie insert indirect" directive with
header checks on server and client side. syslog messages are also
checked, especially --II (invalid, insert) flags logging.
Signed-off-by: Frédéric Lécaille
---
reg-tests/http-cookies/h0.vtc | 58 +++
From: Frédéric Lécaille
Signed-off-by: Frédéric Lécaille
---
reg-tests/checks/s0.vtc | 207
1 file changed, 207 insertions(+)
create mode 100644 reg-tests/checks/s0.vtc
diff --git a/reg-tests/checks/s0.vtc b/reg-tests/checks/s0.vtc
From: Frédéric Lécaille
Add a new target to the Makefile named "reg-tests-help" to have an idea
about how to run the reg tests from haproxy Makefile.
Handle list of levels and lists of level range passed to make with LEVEL
variable.
New supported syntax:
LEVEL=1,4 make reg-tests
LEVE
From: Frédéric Lécaille
With this test we check that the health-checks do not consume any connection on
the backend side.
Signed-off-by: Frédéric Lécaille
---
reg-tests/checks/s2.vtc | 677
1 file changed, 677 insertions(+)
create mode 100644 r
From: Frédéric Lécaille
Signed-off-by: Frédéric Lécaille
---
reg-tests/checks/s1.vtc | 114
1 file changed, 114 insertions(+)
create mode 100644 reg-tests/checks/s1.vtc
diff --git a/reg-tests/checks/s1.vtc b/reg-tests/checks/s1.vtc
From: Frédéric Lécaille
Signed-off-by: Frédéric Lécaille
---
reg-tests/checks/s3.vtc | 95 +
1 file changed, 95 insertions(+)
create mode 100644 reg-tests/checks/s3.vtc
diff --git a/reg-tests/checks/s3.vtc b/reg-tests/checks/s3.vtc
n
53 matches
Mail list logo