Merge pull request #964 from karolinavelkaja/metadata_mode_cleanup
Cleanup: removing 'metadata_mode' leftovers
This commit is contained in:
@@ -93,11 +93,6 @@ def test_cache_stop_and_load(cache_mode):
|
||||
f"Cache line size is: {check_cache_config.cache_line_size}, "
|
||||
f"should be: {cache.get_cache_line_size()}\n"
|
||||
)
|
||||
if check_cache_config.metadata_mode != cache.get_metadata_mode():
|
||||
failed_params += (
|
||||
f"Metadata mode is: {check_cache_config.metadata_mode}, "
|
||||
f"should be: {cache.get_metadata_mode()}\n"
|
||||
)
|
||||
TestRun.fail(f"Parameters do not match after reload:\n{failed_params}")
|
||||
|
||||
with TestRun.step(
|
||||
|
||||
@@ -16,7 +16,6 @@ from api.cas.cache_config import (
|
||||
CacheModeTrait,
|
||||
CacheStatus,
|
||||
CleaningPolicy,
|
||||
MetadataMode,
|
||||
PromotionPolicy,
|
||||
)
|
||||
from api.cas.casadm import StatsFilter
|
||||
@@ -289,11 +288,6 @@ def validate_cache_config_statistics(caches, after_io: bool = False):
|
||||
f"For cache number {caches[i].cache_id} cache line size is "
|
||||
f"{caches_stats[i].config_stats.cache_line_size}, "
|
||||
f"should be {CacheLineSize.DEFAULT.value}\n")
|
||||
if caches_stats[i].config_stats.metadata_mode != MetadataMode.DEFAULT.value:
|
||||
failed_stats += (
|
||||
f"For cache number {caches[i].cache_id} metadata mode is "
|
||||
f"{caches_stats[i].config_stats.metadata_mode}, "
|
||||
f"should be {MetadataMode.DEFAULT}\n")
|
||||
if (
|
||||
CacheStatus[caches_stats[i].config_stats.status.replace(' ', '_').lower()]
|
||||
!= CacheStatus.running
|
||||
|
||||
Reference in New Issue
Block a user