Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tests: Skip escrow tests in FIPS mode #1085

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions tests/crypto_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -702,6 +702,12 @@ def test_luks2_open_rw(self):

class CryptoTestEscrow(CryptoTestCase):
def setUp(self):
# I am not able to generate a self-signed certificate that would work in FIPS
# so let's just skip this for now
fips = read_file("/proc/sys/crypto/fips_enabled")
if int(fips) == 1:
self.skipTest("Skipping escrow tests in FIPS mode")

super(CryptoTestEscrow, self).setUp()

# Create the certificate used to encrypt the escrow packet and backup passphrase.
Expand Down