@@ -1275,6 +1275,49 @@ def test_get_keys_permissions(self):
12751275 """
12761276 self ._test_permissions (StratisDbus .get_keys , [], False )
12771277
1278+ @skip (_skip_condition (1 ))
1279+ def test_pool_start_without_cache (self ):
1280+ """
1281+ Test starting a stopped pool by its name without cache.
1282+ """
1283+ pool_name = p_n ()
1284+ make_test_pool (pool_name , StratisCertify .DISKS [0 :1 ])
1285+
1286+ self ._unittest_command (
1287+ StratisDbus .pool_stop (pool_name , "name" ),
1288+ dbus .UInt16 (0 ),
1289+ )
1290+
1291+ self ._unittest_command (
1292+ StratisDbus .pool_start (pool_name , "name" , remove_cache = True ),
1293+ dbus .UInt16 (0 ),
1294+ )
1295+
1296+ @skip (_skip_condition (1 ))
1297+ def test_pool_start_without_cache_encrypted (self ):
1298+ """
1299+ Test starting an encrypted stopped pool by its name without cache.
1300+ """
1301+ pool_name = p_n ()
1302+
1303+ with KernelKey ("test-password" ) as key_desc :
1304+ make_test_pool (pool_name , StratisCertify .DISKS [0 :1 ], key_desc = key_desc )
1305+
1306+ self ._unittest_command (
1307+ StratisDbus .pool_stop (pool_name , "name" ),
1308+ dbus .UInt16 (0 ),
1309+ )
1310+
1311+ self ._unittest_command (
1312+ StratisDbus .pool_start (
1313+ pool_name ,
1314+ "name" ,
1315+ unlock_method = (True , (False , 0 )),
1316+ remove_cache = True ,
1317+ ),
1318+ dbus .UInt16 (0 ),
1319+ )
1320+
12781321
12791322class StratisdManPageCertify (StratisCertify ):
12801323 """
0 commit comments