Skip to content

Commit

Permalink
fix: remove runas from job attachment fixture (#136)
Browse files Browse the repository at this point in the history
Signed-off-by: Cody Edwards <[email protected]>
  • Loading branch information
edwards-aws authored Aug 9, 2024
1 parent 6d4023d commit 28767c7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 15 deletions.
4 changes: 2 additions & 2 deletions src/deadline_test_fixtures/deadline/resources.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def create(
client: DeadlineClient,
display_name: str,
farm: Farm,
job_run_as_user: JobRunAsUser,
job_run_as_user: JobRunAsUser | None = None,
role_arn: str | None = None,
job_attachments: JobAttachmentSettings | None = None,
raw_kwargs: dict | None = None,
Expand All @@ -73,7 +73,7 @@ def create(
"jobAttachmentSettings": (
job_attachments.as_queue_settings() if job_attachments else None
),
"jobRunAsUser": asdict(job_run_as_user),
"jobRunAsUser": asdict(job_run_as_user) if job_run_as_user else None,
**(raw_kwargs or {}),
}
)
Expand Down
13 changes: 0 additions & 13 deletions src/deadline_test_fixtures/job_attachment_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@

from .models import (
JobAttachmentSettings,
JobRunAsUser,
PosixSessionUser,
WindowsSessionUser,
)
from uuid import uuid4

Expand Down Expand Up @@ -52,11 +49,6 @@ def deploy_resources(self):
client=self.deadline_client,
display_name="job_attachments_test_queue",
farm=Farm(self.farm_id),
job_run_as_user=JobRunAsUser(
posix=PosixSessionUser("", ""),
runAs="WORKER_AGENT_USER",
windows=WindowsSessionUser("", ""),
),
job_attachments=JobAttachmentSettings(
bucket_name=self.bucket_name, root_prefix=self.bucket_root_prefix
),
Expand All @@ -65,11 +57,6 @@ def deploy_resources(self):
client=self.deadline_client,
display_name="job_attachments_test_no_settings_queue",
farm=Farm(self.farm_id),
job_run_as_user=JobRunAsUser(
posix=PosixSessionUser("", ""),
runAs="WORKER_AGENT_USER",
windows=WindowsSessionUser("", ""),
),
)

except (ClientError, WaiterError):
Expand Down

0 comments on commit 28767c7

Please sign in to comment.