From b6b95b86e83691660e6b59355b40a41dff0f4745 Mon Sep 17 00:00:00 2001 From: Vladimir Domnich Date: Thu, 14 Jul 2022 10:21:20 +0400 Subject: [PATCH] Add markers for failover tests This allows us to skip failover tests during regular run of integration tests. Signed-off-by: Vladimir Domnich --- pytest_tests/pytest.ini | 1 + pytest_tests/testsuites/failovers/test_failover_storage.py | 2 ++ 2 files changed, 3 insertions(+) diff --git a/pytest_tests/pytest.ini b/pytest_tests/pytest.ini index 3bb2350..cbb3b04 100644 --- a/pytest_tests/pytest.ini +++ b/pytest_tests/pytest.ini @@ -17,3 +17,4 @@ markers = long: long tests (with long execution time) node_mgmt: neofs control commands acl: tests for basic and extended ACL + failover: tests for system recovery after a failure \ No newline at end of file diff --git a/pytest_tests/testsuites/failovers/test_failover_storage.py b/pytest_tests/testsuites/failovers/test_failover_storage.py index 1620993..121c349 100644 --- a/pytest_tests/testsuites/failovers/test_failover_storage.py +++ b/pytest_tests/testsuites/failovers/test_failover_storage.py @@ -69,6 +69,7 @@ def wait_object_replication(wallet, cid, oid, expected_copies: int) -> [str]: @allure.title('Lost and return nodes') @pytest.mark.parametrize('hard_reboot', [True, False]) +@pytest.mark.failover def test_lost_storage_node(prepare_wallet_and_deposit, sbercloud_client: SberCloud, free_storage_check, hard_reboot: bool): wallet = prepare_wallet_and_deposit @@ -99,6 +100,7 @@ def test_lost_storage_node(prepare_wallet_and_deposit, sbercloud_client: SberClo @allure.title('Panic storage node(s)') @pytest.mark.parametrize('sequence', [True, False]) +@pytest.mark.failover def test_panic_storage_node(prepare_wallet_and_deposit, free_storage_check, sequence: bool): wallet = prepare_wallet_and_deposit placement_rule = 'REP 2 IN X CBF 2 SELECT 2 FROM * AS X'