mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-30 22:15:20 +00:00
wildcard: Require hypothesis 4.41.2 or greater for FIPS compliance
hypothesis prior to 4.41.2 uses hashlib.md5 which is not FIPS compliant causing the wildcard system test to fail. Check if we are running if FIPS mode and if so make the minimum version of hypothesis we will accept to be 4.41.2.
This commit is contained in:
@@ -39,7 +39,14 @@ import dns.rdataclass
|
||||
import dns.rdatatype
|
||||
import dns.rrset
|
||||
|
||||
pytest.importorskip("hypothesis")
|
||||
# in FIPs mode md5 fails so we need 4.41.2 or later which does not use md5
|
||||
try:
|
||||
import hashlib
|
||||
|
||||
hashlib.md5(b"1234")
|
||||
pytest.importorskip("hypothesis")
|
||||
except ValueError:
|
||||
pytest.importorskip("hypothesis", minversion="4.41.2")
|
||||
from hypothesis import given
|
||||
from hypothesis.strategies import binary, integers
|
||||
|
||||
|
Reference in New Issue
Block a user