tests: add test for adding invalid cores devices to caches

Signed-off-by: Damian Raczkowski <damian.raczkowski@intel.com>
This commit is contained in:
Damian Raczkowski
2022-08-10 01:09:10 +02:00
parent 75ed4130f0
commit d7482cea0a
2 changed files with 55 additions and 0 deletions

View File

@@ -20,6 +20,16 @@ start_cache_with_existing_metadata = [
r" discard on-disk metadata and start fresh cache instance\."
]
start_cache_on_already_used_dev = [
r"Error inserting cache \d+",
r"Cache device \'\/dev\/\S+\' is already used as cache\."
]
start_cache_with_existing_id = [
r"Error inserting cache \d+",
r"Cache ID already exists"
]
standby_init_with_existing_filesystem = [
r"A filesystem exists on \S+. Specify the --force option if you wish to add the cache anyway.",
r"Note: this may result in loss of data"