From c7f832e77a0888ddf6be52f4b4d0ece9c0fea040 Mon Sep 17 00:00:00 2001 From: Andrey Berezin Date: Fri, 16 Dec 2022 11:30:47 +0300 Subject: [PATCH] Fix allure attaches for failover test Signed-off-by: Andrey Berezin --- .../testsuites/failovers/test_failover_storage.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pytest_tests/testsuites/failovers/test_failover_storage.py b/pytest_tests/testsuites/failovers/test_failover_storage.py index f0dd952e..c49ce9f4 100644 --- a/pytest_tests/testsuites/failovers/test_failover_storage.py +++ b/pytest_tests/testsuites/failovers/test_failover_storage.py @@ -87,7 +87,7 @@ class TestFailoverStorage(ClusterTestBase): ) assert get_file_hash(source_file_path) == get_file_hash(got_file_path) - with allure.step(f"Return all hosts"): + with allure.step("Return all hosts"): return_stopped_hosts(self.cluster) with allure.step("Check object data is not corrupted"): @@ -123,7 +123,7 @@ class TestFailoverStorage(ClusterTestBase): cid, oid, 2, shell=self.shell, nodes=self.cluster.storage_nodes ) allure.attach( - "\n".join(nodes), + "\n".join([str(node) for node in nodes]), "Current nodes with object", allure.attachment_type.TEXT, ) @@ -151,7 +151,7 @@ class TestFailoverStorage(ClusterTestBase): ) allure.attach( - "\n".join(new_nodes), + "\n".join([str(new_node) for new_node in new_nodes]), f"Nodes with object after {node} fail", allure.attachment_type.TEXT, ) @@ -161,7 +161,7 @@ class TestFailoverStorage(ClusterTestBase): cid, oid, 2, shell=self.shell, nodes=self.cluster.storage_nodes ) allure.attach( - "\n".join(new_nodes), + "\n".join([str(new_node) for new_node in new_nodes]), "Nodes with object after nodes fail", allure.attachment_type.TEXT, )