API fix for casadm standby init
Cache line size parameter is handled inconsistently in standby init and start cache methods. This patch fixes this inconsistency so both methods accept a proper CacheLineSize object. Some of the existing tests needed fixing as well, as included in this patch. Signed-off-by: Krzysztof Majzerowicz-Jaszcz <krzysztof.majzerowicz-jaszcz@intel.com>
This commit is contained in:
@@ -53,7 +53,7 @@ def test_activate_corrupted():
|
||||
with TestRun.step("Prepare standby instance"):
|
||||
cache = casadm.standby_init(
|
||||
cache_dev=cache_device,
|
||||
cache_line_size=int(cls.value.value / Unit.KibiByte.value),
|
||||
cache_line_size=cls,
|
||||
cache_id=cache_id,
|
||||
force=True,
|
||||
)
|
||||
@@ -154,7 +154,7 @@ def test_activate_corrupted_after_dump():
|
||||
with TestRun.step("Prepare standby instance"):
|
||||
cache = casadm.standby_init(
|
||||
cache_dev=cache_device,
|
||||
cache_line_size=int(cls.value.value / Unit.KibiByte.value),
|
||||
cache_line_size=cls,
|
||||
cache_id=cache_id,
|
||||
force=True,
|
||||
)
|
||||
|
Reference in New Issue
Block a user