Skip to content

Commit

Permalink
Switch context to ACM cluster before login to ACM console (#8836)
Browse files Browse the repository at this point in the history
Signed-off-by: Sidhant Agrawal <[email protected]>
  • Loading branch information
sidhant-agrawal authored Nov 24, 2023
1 parent 19841b5 commit f8f8eab
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -4792,10 +4792,14 @@ def setup_acm_ui(request):


def setup_acm_ui_fixture(request):
restore_ctx_index = ocsci_config.cur_index
ocsci_config.switch_acm_ctx()
driver = login_to_acm()

def finalizer():
close_browser()
log.info("Switching back to the initial cluster context")
ocsci_config.switch_ctx(restore_ctx_index)

request.addfinalizer(finalizer)

Expand Down

0 comments on commit f8f8eab

Please sign in to comment.