skip tests on fips

tests fail on fips enabled platforms due to md5 being disallowed by
default
This commit is contained in:
Skyler Hawthorne 2024-02-08 21:31:54 -05:00 committed by Pedro Algarvio
parent 3703fc5291
commit 37587fbd8a

View file

@ -70,6 +70,7 @@ def verify_cache(bucket, expected):
assert correct_content == content
@pytest.mark.skip_on_fips_enabled_platform
def test_update(bucket, s3):
"""Tests that files get downloaded from s3 to the local cache."""
@ -90,6 +91,7 @@ def test_update(bucket, s3):
verify_cache(bucket, keys)
@pytest.mark.skip_on_fips_enabled_platform
def test_s3_hash(bucket, s3):
"""Verifies that s3fs hashes files correctly."""
@ -119,6 +121,7 @@ def test_s3_hash(bucket, s3):
assert item["hash"] == actual_hash["hsum"]
@pytest.mark.skip_on_fips_enabled_platform
def test_cache_round_trip(bucket):
metadata = {"foo": "bar"}
cache_file = s3fs._get_cached_file_name(bucket, "base", "somefile")