pytest: basic cache recovery test
Signed-off-by: Adam Rutkowski <adam.j.rutkowski@intel.com>
This commit is contained in:
@@ -72,3 +72,15 @@ def test_load_cache(pyocf_ctx):
|
||||
cache.stop()
|
||||
|
||||
cache = Cache.load_from_device(cache_device)
|
||||
|
||||
|
||||
def test_load_cache_recovery(pyocf_ctx):
|
||||
cache_device = Volume(S.from_MiB(30))
|
||||
|
||||
cache = Cache.start_on_device(cache_device)
|
||||
|
||||
device_copy = cache_device.get_copy()
|
||||
|
||||
cache.stop()
|
||||
|
||||
cache = Cache.load_from_device(device_copy)
|
||||
|
Reference in New Issue
Block a user