From 5058771790f18b38c19a8f20fcd54a431b816419 Mon Sep 17 00:00:00 2001 From: korgoth1 Date: Sun, 29 Dec 2019 17:41:29 +0300 Subject: [PATCH] [Test] SPF uppercase elements --- test/functional/cases/117_spf.robot | 5 +++++ test/functional/configs/plugins.conf | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/test/functional/cases/117_spf.robot b/test/functional/cases/117_spf.robot index 59f2667cd..08733471b 100644 --- a/test/functional/cases/117_spf.robot +++ b/test/functional/cases/117_spf.robot @@ -131,6 +131,11 @@ SPF EXTERNAL RELAY ${result} = Scan Message With Rspamc ${TESTDIR}/messages/external_relay.eml Should contain ${result.stdout} R_SPF_ALLOW (1.00)[+ip4:37.48.67.26] +SPF UPPERCASE + ${result} = Scan Message With Rspamc ${TESTDIR}/messages/dmarc/bad_dkim1.eml + ... -i 8.8.8.8 -F x@fail11.org.org.za + Check Rspamc ${result} R_SPF_ALLOW + *** Keywords *** SPF Setup ${PLUGIN_CONFIG} = Get File ${TESTDIR}/configs/dmarc.conf diff --git a/test/functional/configs/plugins.conf b/test/functional/configs/plugins.conf index b55f3a35c..025f6c55f 100644 --- a/test/functional/configs/plugins.conf +++ b/test/functional/configs/plugins.conf @@ -208,6 +208,11 @@ options = { type = "txt"; replies = ["v=spf1 redirect=fail5.org.org.za"]; }, + { + name = "fail11.org.org.za", + type = "txt"; + replies = ["v=sPF1 ip4:8.8.8.8 -all"]; + }, { name = "fail5.org.org.za", type = "txt"; -- 2.39.5