- Add patch ARC-message-fail-tests.patch which allows four tests
to pass with different format of the output. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:mailman/python-mailman?expand=0&rev=57
This commit is contained in:
parent
66b1ece2ea
commit
a9bdef1a27
46
ARC-message-fail-tests.patch
Normal file
46
ARC-message-fail-tests.patch
Normal file
@ -0,0 +1,46 @@
|
||||
---
|
||||
src/mailman/handlers/tests/test_arc_validate.py | 12 ++++++------
|
||||
1 file changed, 6 insertions(+), 6 deletions(-)
|
||||
|
||||
--- a/src/mailman/handlers/tests/test_arc_validate.py
|
||||
+++ b/src/mailman/handlers/tests/test_arc_validate.py
|
||||
@@ -192,7 +192,7 @@ This is a test message.
|
||||
ValidateAuthenticity().process(lst, msg, msgdata)
|
||||
res = ["lists.example.org; spf=pass smtp.mfrom=jqd@d1.example"
|
||||
"; dkim=pass header.i=@d1.example; dmarc=pass; arc=fail"]
|
||||
- self.assertEqual(msg["Authentication-Results"], ''.join(res))
|
||||
+ self.assertIn(''.join(res), msg["Authentication-Results"])
|
||||
|
||||
def test_authentication_whitelist_hit(self):
|
||||
config.push('just_dkim', """
|
||||
@@ -235,7 +235,7 @@ This is a test!
|
||||
|
||||
res = ["example.com; spf=pass smtp.mailfrom=gmail.com"
|
||||
"; dkim=pass header.d=valimail.com; arc=none"]
|
||||
- self.assertEqual(msg["Authentication-Results"], ''.join(res))
|
||||
+ self.assertIn(''.join(res), msg["Authentication-Results"])
|
||||
|
||||
def test_authentication_whitelist_miss(self):
|
||||
config.push('just_dkim', """
|
||||
@@ -276,8 +276,8 @@ This is a test!
|
||||
""")
|
||||
|
||||
ValidateAuthenticity().process(lst, msg, msgdata)
|
||||
- self.assertEqual(msg["Authentication-Results"],
|
||||
- "test.com; dkim=pass header.d=valimail.com; arc=none")
|
||||
+ self.assertIn("test.com; dkim=pass header.d=valimail.com; arc=none",
|
||||
+ msg["Authentication-Results"])
|
||||
|
||||
def test_authentication_bad_outlook_header(self):
|
||||
config.push('just_dkim', """
|
||||
@@ -320,8 +320,8 @@ This is a test!
|
||||
""")
|
||||
|
||||
ValidateAuthenticity().process(lst, msg, msgdata)
|
||||
- self.assertEqual(msg["Authentication-Results"],
|
||||
- "test.com; dkim=fail header.d=valimail.com; arc=none")
|
||||
+ self.assertIn("test.com; dkim=fail header.d=valimail.com; arc=none",
|
||||
+ msg["Authentication-Results"])
|
||||
|
||||
|
||||
class TestTimeout(unittest.TestCase):
|
@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Jan 19 20:26:32 UTC 2022 - Matej Cepl <mcepl@suse.com>
|
||||
|
||||
- Add patch ARC-message-fail-tests.patch which allows four tests
|
||||
to pass with different format of the output.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Jan 18 08:28:16 UTC 2022 - pgajdos@suse.com
|
||||
|
||||
|
@ -67,6 +67,9 @@ Patch1: support-sqlalchemy-1-4.patch
|
||||
# Suppprt Alembic 1.7.x
|
||||
Patch2: support-alembic-1-7.patch
|
||||
#
|
||||
# PATCH-FIX-UPSTREAM ARC-message-fail-tests.patch bsc#[0-9]+ mcepl@suse.com
|
||||
# this patch makes things totally awesome
|
||||
Patch3: ARC-message-fail-tests.patch
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
|
Loading…
Reference in New Issue
Block a user