Skip tests that will not succeed when FIPS provider is used

This commit is contained in:
Daniel A. Wozniak 2024-05-26 23:50:30 -07:00 committed by Daniel Wozniak
parent 20312c732d
commit 09e09741d4

View file

@ -269,6 +269,9 @@ class TestVaultPillarPolicyTemplatesWithoutCache:
)
assert ret.data == ["salt_minion", f"salt_minion_{pillar_salt_minion.id}"]
@pytest.mark.skipif(
FIPS_TESTRUN, reason="Signing with SHA1 not supported in FIPS mode."
)
def test_policy_compilation_prevents_loop_for_execution_module(
self,
pillar_salt_run_cli,
@ -290,6 +293,9 @@ class TestVaultPillarPolicyTemplatesWithoutCache:
assert "Pillar render error: Rendering SLS 'exe_loop' failed" in ret.stderr
assert "Cyclic dependency detected while refreshing pillar" in ret.stderr
@pytest.mark.skipif(
FIPS_TESTRUN, reason="Signing with SHA1 not supported in FIPS mode."
)
def test_policy_compilation_prevents_loop_for_sdb_module(
self,
pillar_salt_run_cli,