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

Fix running tests in FIPS mode #1314

Merged
Show file tree
Hide file tree
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
4 changes: 2 additions & 2 deletions tests/storage_tests/devices_test/stratis_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ def test_stratis_encrypted(self):
blivet.partitioning.do_partitioning(self.storage)

pool = self.storage.new_stratis_pool(name="blivetTestPool", parents=[bd],
encrypted=True, passphrase="abcde")
encrypted=True, passphrase="fipsneeds8chars")
self.storage.create_device(pool)

self.storage.do_it()
Expand Down Expand Up @@ -260,7 +260,7 @@ def test_stratis_encrypted_clevis_tpm(self):
blivet.partitioning.do_partitioning(self.storage)

pool = self.storage.new_stratis_pool(name="blivetTestPool", parents=[bd],
encrypted=True, passphrase="abcde",
encrypted=True, passphrase="fipsneeds8chars",
clevis=StratisClevisConfig(pin="tpm2"))
self.storage.create_device(pool)

Expand Down
1 change: 1 addition & 0 deletions tests/storage_tests/formats_test/luks_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ def test_setup_keyfile(self):

with tempfile.NamedTemporaryFile(prefix="blivet_test") as temp:
temp.write(b"password2")
temp.flush()

# create the luks format with both passphrase and keyfile
self.fmt._key_file = temp.name
Expand Down