]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
REGTEST: Fix reg-tests about health-checks to adapt them to recent changes
authorChristopher Faulet <cfaulet@haproxy.com>
Mon, 20 Apr 2020 12:59:20 +0000 (14:59 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Mon, 27 Apr 2020 08:46:28 +0000 (10:46 +0200)
reg-tests/checks/4be_1srv_smtpchk_httpchk_layer47errors.vtc
reg-tests/checks/http-check-send.vtc
reg-tests/checks/tls_health_checks.vtc

index 1b8e237e75c2bcd0733673594c0739b73449ea72..a226f463766f8f9a9e214ae1b43363aa64170a86 100644 (file)
@@ -20,7 +20,7 @@ syslog S2 -level notice {
     recv
     expect ~ "[^:\\[ ]\\[${h1_pid}\\]: Proxy be2 started"
     recv
-    expect ~ "[^:\\[ ]\\[${h1_pid}\\]: Health check for server be2/srv2 succeeded.+reason: Layer7 check passed.+code: 200.+info: \"OK\".+check duration: [[:digit:]]+ms.+status: 1/1 UP."
+    expect ~ "[^:\\[ ]\\[${h1_pid}\\]: Health check for server be2/srv2 succeeded.+reason: Layer7 check passed.+code: 200.+.+check duration: [[:digit:]]+ms.+status: 1/1 UP."
     barrier b sync
     recv
     expect ~ "[^:\\[ ]\\[${h1_pid}\\]: Health check for server be2/srv2 failed.+reason: Layer7 timeout.+check duration: [[:digit:]]+ms.+status: 0/1 DOWN"
index 7e2e37b2cca323cee47f46093507aaadeb8a638a..0b675bdd8237c8698fabff92377f0ba5c9690c71 100644 (file)
@@ -29,7 +29,6 @@ server s3 {
     expect req.http.hdr == <undef>
     expect req.http.host == <undef>
     expect req.http.x-test == <undef>
-    expect req.http.content-length == <undef>
     expect req.bodylen == 0
     txresp
 } -start
@@ -50,9 +49,9 @@ server s4 {
 
 server s5 {
     rxreq
-    expect req.method == GET
-    expect req.url == /status
-    expect req.proto == HTTP/1.1
+    expect req.method == OPTIONS
+    expect req.url == /
+    expect req.proto == HTTP/1.0
     expect req.http.hdr == <undef>
     expect req.http.host == "other-www-host"
     expect req.http.x-test == <undef>
index 4a431afc801e4220a849a030200160ee79ed0dd3..c7e39c5fd9d90a24aa380db6459e794b1be4509f 100644 (file)
@@ -60,16 +60,16 @@ syslog S2 -level notice {
     recv
     expect ~ "[^:\\[ ]\\[${h2_pid}\\]: Proxy be2 started."
     recv
-    expect ~ "[^:\\[ ]\\[${h2_pid}\\]: Health check for server be2/srv1 succeeded, reason: Layer7 check passed, code: 200, info: \"OK\", check duration: [[:digit:]]+ms, status: 1/1 UP."
+    expect ~ "[^:\\[ ]\\[${h2_pid}\\]: Health check for server be2/srv1 succeeded, reason: Layer7 check passed.+code: 200.+check duration: [[:digit:]]+ms, status: 1/1 UP."
     recv
-    expect ~ "[^:\\[ ]\\[${h2_pid}\\]: Health check for server be2/srv1 failed, reason: Layer7 wrong status, code: 504, info: \"Gateway Time-out\", check duration: [[:digit:]]+ms, status: 0/1 DOWN."
+    expect ~ "[^:\\[ ]\\[${h2_pid}\\]: Health check for server be2/srv1 failed, reason: Layer7 wrong status.+code: 504.+info: \"Gateway Time-out\".+check duration: [[:digit:]]+ms, status: 0/1 DOWN."
 } -start
 
 syslog S4 -level notice {
     recv
     expect ~ "[^:\\[ ]\\[${h2_pid}\\]: Proxy be4 started."
     recv
-    expect ~ "[^:\\[ ]\\[${h2_pid}\\]: Health check for server be4/srv2 succeeded, reason: Layer6 check passedcheck duration: [[:digit:]]+ms, status: 1/1 UP."
+    expect ~ "[^:\\[ ]\\[${h2_pid}\\]: Health check for server be4/srv2 succeeded, reason: Layer6 check passed.+check duration: [[:digit:]]+ms, status: 1/1 UP."
 } -start
 
 haproxy h2 -conf {