Skip to content

Commit

Permalink
test: Fix sa name to be under 63 chars (#391)
Browse files Browse the repository at this point in the history
  • Loading branch information
ptiurin authored Jun 28, 2024
1 parent 25c9a70 commit c804a99
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/integration/dbapi/async/V2/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ async def service_account_no_user(
) -> Tuple[str, Secret]:
# function-level fixture so we need to make sa name is unique
randomness = "".join(random.choices(string.ascii_letters + string.digits, k=2))
sa_account_name = f"{database_name}_sa_no_user_{randomness}"
sa_account_name = f"{database_name}_no_user_{randomness}"
with connection_system_engine_no_db.cursor() as cursor:
await cursor.execute(
f'CREATE SERVICE ACCOUNT "{sa_account_name}" '
Expand Down
2 changes: 1 addition & 1 deletion tests/integration/dbapi/sync/V2/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def service_account_no_user(
) -> Tuple[str, Secret]:
# function-level fixture so we need to make sa name is unique
randomness = "".join(random.choices(string.ascii_letters + string.digits, k=2))
sa_account_name = f"{database_name}_sa_no_user_{randomness}"
sa_account_name = f"{database_name}_no_user_{randomness}"
with connection_system_engine_no_db.cursor() as cursor:
cursor.execute(
f'CREATE SERVICE ACCOUNT "{sa_account_name}" '
Expand Down

0 comments on commit c804a99

Please sign in to comment.