Skip to content

Commit

Permalink
fixing mgr failover
Browse files Browse the repository at this point in the history
Signed-off-by: nagendra202 <nagreddy@redhat.com>
  • Loading branch information
nagendra202 committed Nov 12, 2024
1 parent e2d69fc commit 26975ea
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions tests/functional/ui/test_odf_storage_consumption_trend.py
Original file line number Diff line number Diff line change
Expand Up @@ -259,13 +259,11 @@ def test_consumption_trend_with_mgr_failover(self, setup_ui_class):
)
POD_OBJ.wait_for_delete(resource_name=active_mgr_pod_before_failover)

def _check_failover():
def check_failover():
if active_mgr_deployment_name_before_failover != self.get_active_mgr()[0]:
logger.info("Mgr Failover succeed")

_check_failover()

TimeoutSampler(timeout=120, sleep=15, func=_check_failover)
TimeoutSampler(timeout=120, sleep=15, func=check_failover)
logger.info(f"Scale down {active_mgr_deployment_name_before_failover} to 1")
helpers.modify_deployment_replica_count(
deployment_name=active_mgr_deployment_name_before_failover, replica_count=1
Expand Down

0 comments on commit 26975ea

Please sign in to comment.