From 0e5f0aad5b1a6d2df7a29d442e2eeb89dd9761ad Mon Sep 17 00:00:00 2001 From: Daniel Madej Date: Wed, 29 Jan 2025 11:13:55 +0100 Subject: [PATCH] Add error message in test api Signed-off-by: Daniel Madej --- test/functional/api/cas/cli_messages.py | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/test/functional/api/cas/cli_messages.py b/test/functional/api/cas/cli_messages.py index 78da17bb5..e79e9c960 100644 --- a/test/functional/api/cas/cli_messages.py +++ b/test/functional/api/cas/cli_messages.py @@ -1,13 +1,13 @@ # # Copyright(c) 2019-2022 Intel Corporation -# Copyright(c) 2024 Huawei Technologies +# Copyright(c) 2024-2025 Huawei Technologies # SPDX-License-Identifier: BSD-3-Clause # import re -from core.test_run import TestRun from connection.utils.output import Output +from core.test_run import TestRun load_inactive_core_missing = [ r"WARNING: Can not resolve path to core \d+ from cache \d+\. By-id path will be shown for that " @@ -17,11 +17,18 @@ start_cache_with_existing_metadata = [ r"Error inserting cache \d+", - r"Old metadata found on device\.", + r"Old metadata found on device", r"Please load cache metadata using --load option or use --force to", r" discard on-disk metadata and start fresh cache instance\.", ] +attach_cache_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\.", +] + start_cache_on_already_used_dev = [ r"Error inserting cache \d+", r"Cache device \'\/dev\/\S+\' is already used as cache\.",