Skip to content

Commit

Permalink
Created Resiliency_test marker and added to the test
Browse files Browse the repository at this point in the history
Signed-off-by: Parag Kamble <[email protected]>
  • Loading branch information
paraggit committed Jan 8, 2025
1 parent b819efc commit 06d1bdd
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
2 changes: 2 additions & 0 deletions ocs_ci/framework/pytest_customization/marks.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@
acm_import = pytest.mark.acm_import
rdr = pytest.mark.rdr
mdr = pytest.mark.mdr
resiliency_test = pytest.mark.resiliency_test

tier_marks = [
tier1,
Expand All @@ -111,6 +112,7 @@
scale_long_run,
scale_changed_layout,
workloads,
resiliency_test,
]

# upgrade related markers
Expand Down
5 changes: 3 additions & 2 deletions tests/resiliency/test_network_failures_scenarios.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,16 @@
# from ocs_ci.resiliency.resiliency_workload import workload_object
import logging
from ocs_ci.ocs import constants
from ocs_ci.framework.pytest_customization.marks import green_squad
from ocs_ci.framework.pytest_customization.marks import green_squad, resiliency_test

log = logging.getLogger(__name__)


@green_squad
@resiliency_test
class TestNetworkFailures:
def test_node_network_failure(self, multi_pvc_factory, fio_resiliency_workload):
""" """
"""Resiliency tests with node network failure."""
scenario = "NETWORK_FAILURES"
failure_method = "NODE_NETWORK_DOWN"

Expand Down
5 changes: 3 additions & 2 deletions tests/resiliency/test_node_failure_scenarios.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,16 @@
# from ocs_ci.resiliency.resiliency_workload import workload_object
import logging
from ocs_ci.ocs import constants
from ocs_ci.framework.pytest_customization.marks import green_squad
from ocs_ci.framework.pytest_customization.marks import green_squad, resiliency_test

log = logging.getLogger(__name__)


@green_squad
@resiliency_test
class TestResiliencyNodeFailures:
def test_node_poweroff(self, multi_pvc_factory, fio_resiliency_workload):
"""Resiliency tests"""
"""Resiliency tests with node failures"""
scenario = "NODE_FAILURES"
failure_method = "POWEROFF_NODE"

Expand Down

0 comments on commit 06d1bdd

Please sign in to comment.