Skip to content

Commit

Permalink
Added new marker "rdr" for running RDR related tests
Browse files Browse the repository at this point in the history
Signed-off-by: Sidhant Agrawal <[email protected]>
  • Loading branch information
sidhant-agrawal committed Oct 8, 2024
1 parent dc59393 commit a0a0f17
Show file tree
Hide file tree
Showing 13 changed files with 25 additions and 10 deletions.
1 change: 1 addition & 0 deletions ocs_ci/framework/pytest_customization/marks.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@
bugzilla = pytest.mark.bugzilla
jira = pytest.mark.jira
acm_import = pytest.mark.acm_import
rdr = pytest.mark.rdr

tier_marks = [
tier1,
Expand Down
1 change: 1 addition & 0 deletions pytest.ini
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ markers =
black_squad: marker for black squad
yellow_squad: marker for yellow squad
turquoise_squad: marker for turquoise squad
rdr: marker for RDR related tests
ignore_owner: marker to ignore test during squad decorator check in pytest collection
mcg: marker for MCG related tests
rgw: marker for RGW related tests
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

from ocs_ci.deployment.cnv import CNVInstaller
from ocs_ci.framework import config
from ocs_ci.framework.pytest_customization.marks import tier1, turquoise_squad
from ocs_ci.framework.pytest_customization.marks import rdr, tier1, turquoise_squad
from ocs_ci.helpers import dr_helpers
from ocs_ci.helpers.cnv_helpers import run_dd_io
from ocs_ci.ocs import constants
Expand All @@ -17,6 +17,7 @@
logger = logging.getLogger(__name__)


@rdr
@tier1
@turquoise_squad
class TestCnvApplicationRDR:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import pytest

from ocs_ci.framework import config
from ocs_ci.framework.pytest_customization.marks import turquoise_squad
from ocs_ci.framework.pytest_customization.marks import rdr, turquoise_squad
from ocs_ci.framework.testlib import acceptance, tier1
from ocs_ci.helpers import dr_helpers
from ocs_ci.helpers.dr_helpers import (
Expand Down Expand Up @@ -32,6 +32,7 @@
polarion_id_primary_down = "OCS-4742"


@rdr
@acceptance
@tier1
@turquoise_squad
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import pytest

from ocs_ci.framework import config
from ocs_ci.framework.pytest_customization.marks import turquoise_squad
from ocs_ci.framework.pytest_customization.marks import rdr, turquoise_squad
from ocs_ci.framework.testlib import acceptance, tier1
from ocs_ci.helpers import dr_helpers
from ocs_ci.helpers.dr_helpers_ui import (
Expand Down Expand Up @@ -34,6 +34,7 @@
# This test case is added in ODF 4.13 test plan.


@rdr
@turquoise_squad
@acceptance
@tier1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,14 @@

from ocs_ci.framework import config
from ocs_ci.framework.testlib import acceptance, tier1
from ocs_ci.framework.pytest_customization.marks import turquoise_squad
from ocs_ci.framework.pytest_customization.marks import rdr, turquoise_squad
from ocs_ci.helpers import dr_helpers


logger = logging.getLogger(__name__)


@rdr
@acceptance
@tier1
@turquoise_squad
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

from ocs_ci.framework import config
from ocs_ci.framework.testlib import tier4, tier4b
from ocs_ci.framework.pytest_customization.marks import turquoise_squad
from ocs_ci.framework.pytest_customization.marks import rdr, turquoise_squad
from ocs_ci.helpers import dr_helpers
from ocs_ci.helpers.helpers import run_cmd_verify_cli_output
from ocs_ci.ocs import constants
Expand All @@ -24,6 +24,7 @@
logger = logging.getLogger(__name__)


@rdr
@tier4
@tier4b
@turquoise_squad
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,12 @@

from ocs_ci.framework import config
from ocs_ci.framework.pytest_customization.marks import (
rdr,
rdr_ui_failover_config_required,
rdr_ui_relocate_config_required,
turquoise_squad,
)
from ocs_ci.framework.testlib import tier3, skipif_ocs_version
from ocs_ci.framework.pytest_customization.marks import turquoise_squad
from ocs_ci.helpers import dr_helpers
from ocs_ci.ocs import constants
from ocs_ci.ocs.acm.acm import AcmAddClusters
Expand All @@ -22,6 +23,7 @@
logger = logging.getLogger(__name__)


@rdr
@tier3
@turquoise_squad
@skipif_ocs_version("<4.13")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import pytest

from ocs_ci.framework import config
from ocs_ci.framework.testlib import tier4b, turquoise_squad
from ocs_ci.framework.testlib import rdr, tier4b, turquoise_squad
from ocs_ci.helpers import dr_helpers
from ocs_ci.ocs import constants, defaults
from ocs_ci.ocs.node import (
Expand All @@ -20,6 +20,7 @@
logger = logging.getLogger(__name__)


@rdr
@tier4b
@turquoise_squad
class TestNodeDrainDuringFailoverRelocate:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
from ocs_ci.framework import config
from ocs_ci.framework.testlib import skipif_ocs_version, tier1
from ocs_ci.framework.pytest_customization.marks import (
rdr,
turquoise_squad,
rdr_ui_failover_config_required,
)
Expand Down Expand Up @@ -33,6 +34,7 @@
logger = logging.getLogger(__name__)


@rdr
@tier1
@turquoise_squad
@rdr_ui_failover_config_required
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import pytest

from ocs_ci.framework import config
from ocs_ci.framework.pytest_customization.marks import turquoise_squad
from ocs_ci.framework.pytest_customization.marks import rdr, turquoise_squad
from ocs_ci.framework.testlib import acceptance, tier1
from ocs_ci.helpers import dr_helpers
from ocs_ci.helpers.dr_helpers_ui import (
Expand All @@ -23,6 +23,7 @@
polarion_id_relocate = "OCS-4744"


@rdr
@acceptance
@tier1
@turquoise_squad
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

from ocs_ci.framework import config
from ocs_ci.framework.testlib import tier1
from ocs_ci.framework.pytest_customization.marks import turquoise_squad
from ocs_ci.framework.pytest_customization.marks import rdr, turquoise_squad
from ocs_ci.helpers import dr_helpers
from ocs_ci.ocs.node import wait_for_nodes_status, get_node_objs
from ocs_ci.ocs.resources.pod import wait_for_pods_to_be_running
Expand All @@ -15,6 +15,7 @@
logger = logging.getLogger(__name__)


@rdr
@tier1
@turquoise_squad
class TestSequentialFailover:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,13 @@

from ocs_ci.framework import config
from ocs_ci.framework.testlib import tier1
from ocs_ci.framework.pytest_customization.marks import turquoise_squad
from ocs_ci.framework.pytest_customization.marks import rdr, turquoise_squad
from ocs_ci.helpers import dr_helpers

logger = logging.getLogger(__name__)


@rdr
@tier1
@turquoise_squad
@pytest.mark.polarion_id("OCS-4772")
Expand Down

0 comments on commit a0a0f17

Please sign in to comment.