Skip to content

Commit

Permalink
Create dedicated download_user in test
Browse files Browse the repository at this point in the history
Change-Id: Ieb2e2179bd09b4d3e408224feefc3360cf2843c2
  • Loading branch information
Shortfinga committed Jan 10, 2025
1 parent f350fc5 commit fede4d9
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tests/testlib/openapi_session.py
Original file line number Diff line number Diff line change
Expand Up @@ -297,12 +297,17 @@ def create(
customer: None | str = None,
roles: list[str] | None = None,
is_automation_user: bool = False,
store_automation_secret: bool = False,
) -> None:
if is_automation_user:
auth_option = {
auth_option: dict[str, str | bool] = {
"auth_type": "automation",
"secret": password,
}
if store_automation_secret:
# This attribute came during 2.4 development. We use this API for older versions as
# well in test-update. So we should not set it in all requests!
auth_option["store_automation_secret"] = True
else:
auth_option = {
"auth_type": "password",
Expand Down

0 comments on commit fede4d9

Please sign in to comment.