15
0

Accepting request 1250326 from devel:languages:python

OBS-URL: https://build.opensuse.org/request/show/1250326
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-checkdmarc?expand=0&rev=5
This commit is contained in:
2025-03-05 12:41:21 +00:00
committed by Git OBS Bridge
5 changed files with 20 additions and 64 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:1affa797ec976165932787ac8b46a291d5a5328e7412bf306011a1e60f6e873e
size 58464

3
checkdmarc-5.8.1.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:7690b02808ff4c64e17068d848a3f5ff7ce8a8d2cec98a7446b9b82bde8a0ed9
size 59507

View File

@@ -1,3 +1,15 @@
-------------------------------------------------------------------
Tue Mar 4 16:36:52 UTC 2025 - Martin Hauke <mardnh@gmx.de>
- Update to version 5.8.1
* Fix incomplete fix for issue #159
- Update to version 5.8.0
* Support ra=, rp= and rr= tags from RFC 6652.
* Do not use static answer positions when checking DNSSEC and
TLSA.
- Update patch:
* skip-network-tests.patch
-------------------------------------------------------------------
Sun Nov 10 10:27:03 UTC 2024 - Martin Hauke <mardnh@gmx.de>

View File

@@ -1,8 +1,8 @@
#
# spec file for package python-checkdmarc
#
# Copyright (c) 2024 SUSE LLC
# Copyright (c) 2021-2024, Martin Hauke <mardnh@gmx.de>
# Copyright (c) 2025 SUSE LLC
# Copyright (c) 2021-2025, Martin Hauke <mardnh@gmx.de>
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -18,7 +18,7 @@
Name: python-checkdmarc
Version: 5.7.8
Version: 5.8.1
Release: 0
Summary: A Python module and command line parser for SPF and DMARC records
License: Apache-2.0

View File

@@ -1,48 +1,8 @@
diff --git a/tests.py b/tests.py
index 8e58708..65605d4 100755
index fd22132..b684ecb 100755
--- a/tests.py
+++ b/tests.py
@@ -3,6 +3,7 @@
"""Automated tests"""
+import os.path
import unittest
from collections import OrderedDict
@@ -99,6 +100,7 @@ class Test(unittest.TestCase):
self.assertEqual(len(results["warnings"]), 0)
+ @unittest.skipUnless(os.path.exists("/etc/resolv.conf"), "no network")
def testSplitSPFRecord(self):
"""Split SPF records are parsed properly"""
@@ -140,6 +142,7 @@ class Test(unittest.TestCase):
domain,
)
+ @unittest.skipUnless(os.path.exists("/etc/resolv.conf"), "no network")
def testTooManySPFDNSLookups(self):
"""SPF records with > 10 SPF mechanisms that cause DNS lookups raise
SPFTooManyDNSLookups"""
@@ -161,6 +164,7 @@ class Test(unittest.TestCase):
domain,
)
+ @unittest.skipUnless(os.path.exists("/etc/resolv.conf"), "no network")
def testTooManySPFVoidDNSLookups(self):
"""SPF records with > 2 void DNS lookups"""
@@ -274,6 +278,7 @@ class Test(unittest.TestCase):
domain,
)
+ @unittest.skipUnless(os.path.exists("/etc/resolv.conf"), "no network")
def testSPFMissingMXRecord(self):
"""A warning is issued if an SPF record contains a mx mechanism
pointing to a domain that has no MX records"""
@@ -285,6 +290,7 @@ class Test(unittest.TestCase):
@@ -291,6 +291,7 @@ class Test(unittest.TestCase):
"{0} does not have any MX records".format(domain), results["warnings"]
)
@@ -50,19 +10,3 @@ index 8e58708..65605d4 100755
def testSPFMissingARecord(self):
"""A warning is issued if an SPF record contains a mx mechanism
pointing to a domain that has no A records"""
@@ -296,6 +302,7 @@ class Test(unittest.TestCase):
"cardinalhealth.net does not have any A/AAAA records", results["warnings"]
)
+ @unittest.skipUnless(os.path.exists("/etc/resolv.conf"), "no network")
def testDMARCPctLessThan100Warning(self):
"""A warning is issued if the DMARC pvt value is less than 100"""
@@ -347,6 +354,7 @@ class Test(unittest.TestCase):
domain,
)
+ @unittest.skipUnless(os.path.exists("/etc/resolv.conf"), "no network")
def testBIMI(self):
"""Test BIMI checks"""
domain = "chase.com"