Skip to content

Commit 1678159

Browse files
authored
Integration tests: purge suffix for more group fixtures (#2274)
## Changes This PR updates the `make_ucx_group()` fixture that creates a pair of workspace & account groups to include a purge suffix in the group name(s) if none is supplied. This ensures that the groups are not purged while the integration test is running.
1 parent 966fc75 commit 1678159

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/integration/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ def sql_fetch_all(sql_backend):
102102
def make_ucx_group(make_random, make_group, make_acc_group, make_user):
103103
def inner(workspace_group_name=None, account_group_name=None, **kwargs):
104104
if not workspace_group_name:
105-
workspace_group_name = f"ucx_G{make_random(4)}"
105+
workspace_group_name = f"ucx_G{make_random(4)}-{get_purge_suffix()}" # noqa: F405
106106
if not account_group_name:
107107
account_group_name = workspace_group_name
108108
user = make_user()

0 commit comments

Comments
 (0)