Introduce tests for cache attach/detach feature
Signed-off-by: Katarzyna Treder <katarzyna.treder@h-partners.com>
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
#
|
||||
# Copyright(c) 2019-2022 Intel Corporation
|
||||
# Copyright(c) 2024 Huawei Technologies Co., Ltd.
|
||||
# Copyright(c) 2024-2025 Huawei Technologies Co., Ltd.
|
||||
# SPDX-License-Identifier: BSD-3-Clause
|
||||
#
|
||||
|
||||
@@ -125,6 +125,7 @@ class CacheStatus(Enum):
|
||||
incomplete = "incomplete"
|
||||
standby = "standby"
|
||||
standby_detached = "standby detached"
|
||||
detached = "detached"
|
||||
|
||||
def __str__(self):
|
||||
return self.value
|
||||
|
@@ -9,6 +9,20 @@ import re
|
||||
from connection.utils.output import Output
|
||||
from core.test_run import TestRun
|
||||
|
||||
|
||||
attach_not_enough_memory = [
|
||||
r"Not enough free RAM\.\nYou need at least \d+.\d+GB to attach a device to cache "
|
||||
r"with cache line size equal \d+kB.\n"
|
||||
r"Try with greater cache line size\."
|
||||
]
|
||||
|
||||
attach_with_existing_metadata = [
|
||||
r"Error inserting cache \d+",
|
||||
r"Old metadata found on device",
|
||||
r"Please attach another device or use --force to discard on-disk metadata",
|
||||
r" and attach this device to cache instance\."
|
||||
]
|
||||
|
||||
load_inactive_core_missing = [
|
||||
r"WARNING: Can not resolve path to core \d+ from cache \d+\. By-id path will be shown for that "
|
||||
r"core\.",
|
||||
|
Reference in New Issue
Block a user