Skip to content

Commit 3743127

Browse files
committed
Add error message in test api
Signed-off-by: Daniel Madej <daniel.madej@huawei.com>
1 parent 69cdb45 commit 3743127

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

test/functional/api/cas/cli_messages.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66

77
import re
88

9-
from core.test_run import TestRun
109
from connection.utils.output import Output
10+
from core.test_run import TestRun
1111

1212
load_inactive_core_missing = [
1313
r"WARNING: Can not resolve path to core \d+ from cache \d+\. By-id path will be shown for that "
@@ -17,11 +17,18 @@
1717

1818
start_cache_with_existing_metadata = [
1919
r"Error inserting cache \d+",
20-
r"Old metadata found on device\.",
20+
r"Old metadata found on device",
2121
r"Please load cache metadata using --load option or use --force to",
2222
r" discard on-disk metadata and start fresh cache instance\.",
2323
]
2424

25+
attach_cache_with_existing_metadata = [
26+
r"Error inserting cache \d+",
27+
r"Old metadata found on device",
28+
r"Please attach another device or use --force to discard on-disk metadata",
29+
r" and attach this device to cache instance\.",
30+
]
31+
2532
start_cache_on_already_used_dev = [
2633
r"Error inserting cache \d+",
2734
r"Cache device \'\/dev\/\S+\' is already used as cache\.",

0 commit comments

Comments
 (0)