]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
More refined ignoring of false negatives
authorNick Porter <nick@portercomputing.co.uk>
Thu, 25 Apr 2024 16:10:32 +0000 (17:10 +0100)
committerNick Porter <nick@portercomputing.co.uk>
Fri, 26 Apr 2024 07:27:31 +0000 (08:27 +0100)
src/tests/modules/smtp/smtp_attachment/tls_attachment.unlang
src/tests/modules/smtp/smtp_authenticate/tls_authenticate.unlang
src/tests/modules/smtp/smtp_crln/tls_crln.unlang
src/tests/modules/smtp/smtp_stringparse/tls_stringparse.unlang
src/tests/modules/smtp/tls_delivery.unlang

index 5be8abf8e6e3dba5627c9f1808ed4952dc8b91ec..7ec4164f8439c04aab0ad0701ecfb627034cc247 100644 (file)
@@ -20,7 +20,7 @@ smtp.mail {
 #  Module failure is likely a timeout
 #  Avoid false negatives by aborting test
 #
-if (fail) {
+if (fail && (&Module-Failure-Message[*] == 'smtp: curl request failed: Timeout was reached (28)')) {
        test_pass
        handled
 }
index 526c6305d2edfa956c2c7b5e633ab7d39ee0399b..5332c86e53fc949de79a7b157e1134c34b207762 100644 (file)
@@ -11,7 +11,7 @@ smtp.authenticate {
        fail = 1
 }
 
-if (fail) {
+if (fail && (&Module-Failure-Message[*] == 'smtp: curl request failed: Timeout was reached (28)')) {
        test_pass
        handled
 }
index 87075245bb7f14ebf622b5e1c5462a990fff4b07..ed3b98d697ede00f4b902c81d9450f91a488437b 100644 (file)
@@ -18,7 +18,7 @@ smtp.mail {
 #  Module failure is likely a timeout
 #  Avoid false negatives by aborting test
 #
-if (fail) {
+if (fail && (&Module-Failure-Message[*] == 'smtp: curl request failed: Timeout was reached (28)')) {
        test_pass
        handled
 }
index f71dc6a9b5ed3ef2ba8e2e522e70e1191bedfde5..15e031345b8849eaec7ae609d0550f5ff3ce2f04 100644 (file)
@@ -13,7 +13,7 @@ smtp.mail {
 #  Module failure is likely a timeout
 #  Avoid false negatives by aborting test
 #
-if (fail) {
+if (fail && (&Module-Failure-Message[*] == 'smtp: curl request failed: Timeout was reached (28)')) {
        test_pass
        handled
 }
index eb0526c97e236c1030faeb4d6d5a0eef9136dda6..52451551b5926db0c3c88cb18f3fe0f5a402ec62 100644 (file)
@@ -21,7 +21,7 @@ smtp.mail {
 #  Module failure is likely a timeout
 #  Avoid false negatives by aborting test
 #
-if (fail) {
+if (fail && (&Module-Failure-Message[*] == 'smtp: curl request failed: Timeout was reached (28)')) {
        test_pass
        handled
 }
@@ -85,7 +85,7 @@ smtp.mail {
 #  Module failure is likely a timeout
 #  Avoid false negatives by aborting test
 #
-if (fail) {
+if (fail && (&Module-Failure-Message[*] == 'smtp: curl request failed: Timeout was reached (28)')) {
        test_pass
        handled
 }