Skip to content

Commit

Permalink
Merge pull request #1314 from vojtechtrefny/main_fix-stratis-passphra…
Browse files Browse the repository at this point in the history
…se-fips

Fix running tests in FIPS mode
  • Loading branch information
vojtechtrefny authored Nov 12, 2024
2 parents 02d26a8 + 1299620 commit d9f0399
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
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

0 comments on commit d9f0399

Please sign in to comment.