update cli messages and tests accordingly

Signed-off-by: Karolina Rogowska <karolina.rogowska@intel.com>
This commit is contained in:
Karolina Rogowska
2021-07-28 14:49:39 +02:00
parent cb69102f9f
commit ec9a7ca19c
3 changed files with 22 additions and 6 deletions

View File

@@ -163,7 +163,7 @@ def test_add_cached_core(cache_mode):
with TestRun.step("Try adding the same core device to the same cache for the second time."):
output = TestRun.executor.run_expect_fail(
cli.add_core_cmd(cache_id=str(cache1.cache_id), core_dev=str(core_part.path)))
cli_messages.check_stderr_msg(output, cli_messages.add_cached_core)
cli_messages.check_stderr_msg(output, cli_messages.already_cached_core)
with TestRun.step("Stop caches."):
casadm.stop_all_caches()