diff --git a/tests/storage_tests/devices_test/stratis_test.py b/tests/storage_tests/devices_test/stratis_test.py index 21c4d0f50..9792e0618 100644 --- a/tests/storage_tests/devices_test/stratis_test.py +++ b/tests/storage_tests/devices_test/stratis_test.py @@ -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() @@ -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) diff --git a/tests/storage_tests/formats_test/luks_test.py b/tests/storage_tests/formats_test/luks_test.py index 93c8d7524..b8ec229ba 100644 --- a/tests/storage_tests/formats_test/luks_test.py +++ b/tests/storage_tests/formats_test/luks_test.py @@ -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