diff --git a/ocs_ci/helpers/dr_helpers.py b/ocs_ci/helpers/dr_helpers.py index db186c0de30..1d3a3c313c6 100644 --- a/ocs_ci/helpers/dr_helpers.py +++ b/ocs_ci/helpers/dr_helpers.py @@ -1663,13 +1663,13 @@ def generate_kubeobject_capture_interval(): return capture_interval -def verify_last_kubeobject_protection_time(drpc_obj, kubeoject_sync_interval): +def verify_last_kubeobject_protection_time(drpc_obj, kubeobject_sync_interval): """ Verifies that the lastKubeObjectProtectionTime for a given DRPC object is within the expected range. Args: drpc_obj (obj): DRPC object - kubeoject_sync_interval (int): The KubeObject sync interval in minutes + kubeobject_sync_interval (int): The KubeObject sync interval in minutes Returns: str: Current lastKubeObjectProtectionTime @@ -1702,7 +1702,7 @@ def verify_last_kubeobject_protection_time(drpc_obj, kubeoject_sync_interval): f"Time in minutes since the last Kube Object sync {time_since_last_sync}" ) assert ( - time_since_last_sync < 2 * kubeoject_sync_interval + time_since_last_sync < 2 * kubeobject_sync_interval ), "The syncing of Kube Resources is exceeding three times the Kube object sync interval" logger.info("Verified lastKubeObjectProtectionTime value within expected range") config.switch_ctx(restore_index) diff --git a/tests/functional/disaster-recovery/regional-dr/test_failover_and_relocate_discovered_apps.py b/tests/functional/disaster-recovery/regional-dr/test_failover_and_relocate_discovered_apps.py index 51cdb9f6dd8..f5a593647d1 100644 --- a/tests/functional/disaster-recovery/regional-dr/test_failover_and_relocate_discovered_apps.py +++ b/tests/functional/disaster-recovery/regional-dr/test_failover_and_relocate_discovered_apps.py @@ -3,7 +3,7 @@ from ocs_ci.framework import config -from ocs_ci.framework.testlib import acceptance, tier1 +from ocs_ci.framework.testlib import acceptance, tier1, skipif_ocs_version from ocs_ci.framework.pytest_customization.marks import rdr, turquoise_squad from ocs_ci.helpers import dr_helpers from ocs_ci.ocs import constants @@ -16,6 +16,7 @@ @acceptance @tier1 @turquoise_squad +@skipif_ocs_version("<4.16") class TestFailoverAndRelocateWithDiscoveredApps: """ Test Failover and Relocate with Discovered Apps