Skip to content

Commit

Permalink
Add Skip to older versions
Browse files Browse the repository at this point in the history
Signed-off-by: prsurve <prsurve@redhat.com>
  • Loading branch information
prsurve committed Oct 17, 2024
1 parent 27a13ab commit 931f242
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
6 changes: 3 additions & 3 deletions ocs_ci/helpers/dr_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -16,6 +16,7 @@
@acceptance
@tier1
@turquoise_squad
@skipif_ocs_version("<4.16")
class TestFailoverAndRelocateWithDiscoveredApps:
"""
Test Failover and Relocate with Discovered Apps
Expand Down

0 comments on commit 931f242

Please sign in to comment.