Add markers for failover tests
This allows us to skip failover tests during regular run of integration tests. Signed-off-by: Vladimir Domnich <v.domnich@yadro.com>
This commit is contained in:
parent
7026b93c37
commit
b6b95b86e8
2 changed files with 3 additions and 0 deletions
|
@ -17,3 +17,4 @@ markers =
|
||||||
long: long tests (with long execution time)
|
long: long tests (with long execution time)
|
||||||
node_mgmt: neofs control commands
|
node_mgmt: neofs control commands
|
||||||
acl: tests for basic and extended ACL
|
acl: tests for basic and extended ACL
|
||||||
|
failover: tests for system recovery after a failure
|
|
@ -69,6 +69,7 @@ def wait_object_replication(wallet, cid, oid, expected_copies: int) -> [str]:
|
||||||
|
|
||||||
@allure.title('Lost and return nodes')
|
@allure.title('Lost and return nodes')
|
||||||
@pytest.mark.parametrize('hard_reboot', [True, False])
|
@pytest.mark.parametrize('hard_reboot', [True, False])
|
||||||
|
@pytest.mark.failover
|
||||||
def test_lost_storage_node(prepare_wallet_and_deposit, sbercloud_client: SberCloud,
|
def test_lost_storage_node(prepare_wallet_and_deposit, sbercloud_client: SberCloud,
|
||||||
free_storage_check, hard_reboot: bool):
|
free_storage_check, hard_reboot: bool):
|
||||||
wallet = prepare_wallet_and_deposit
|
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)')
|
@allure.title('Panic storage node(s)')
|
||||||
@pytest.mark.parametrize('sequence', [True, False])
|
@pytest.mark.parametrize('sequence', [True, False])
|
||||||
|
@pytest.mark.failover
|
||||||
def test_panic_storage_node(prepare_wallet_and_deposit, free_storage_check, sequence: bool):
|
def test_panic_storage_node(prepare_wallet_and_deposit, free_storage_check, sequence: bool):
|
||||||
wallet = prepare_wallet_and_deposit
|
wallet = prepare_wallet_and_deposit
|
||||||
placement_rule = 'REP 2 IN X CBF 2 SELECT 2 FROM * AS X'
|
placement_rule = 'REP 2 IN X CBF 2 SELECT 2 FROM * AS X'
|
||||||
|
|
Loading…
Reference in a new issue