Skip to content

Commit

Permalink
feat: compatibility with BatchGetJobEntity API changes for jobRunAsUs…
Browse files Browse the repository at this point in the history
…er (#133)

- provides forwards/backwards compatibility with the current API usage
  of the BatchGetJobEntity "jobDetails" entity responses
- Updates some developer test code and configuration to accomodate API
  changes to CreateQueue and to be able to end-to-end test these changes

Signed-off-by: Josh Usiskin <56369778+jusiskin@users.noreply.github.com>
Signed-off-by: Graeme McHale <gmchale@amazon.com>
  • Loading branch information
jusiskin authored and gmchale79 committed Mar 11, 2024
1 parent 1c974d5 commit 374da62
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions test/unit/sessions/job_entities/test_job_details.py
Original file line number Diff line number Diff line change
Expand Up @@ -388,6 +388,21 @@ def test_input_validation_success(data: dict[str, Any]) -> None:
"job_details_no_user",
id="required with runAs WORKER_AGENT_USER",
),
pytest.param(
{
"jobId": "job-0000",
"logGroupName": "/aws/deadline/queue-0000",
"schemaVersion": "jobtemplate-2023-09",
"jobRunAsUser": {
"runAs": "WORKER_AGENT_USER",
},
},
JobDetails(
log_group_name="/aws/deadline/queue-0000",
schema_version=SchemaVersion.v2023_09,
),
id="required with runAs WORKER_AGENT_USER",
),
],
)
def test_convert_job_user_from_boto(data: JobDetailsData, expected: JobDetails, request) -> None:
Expand Down

0 comments on commit 374da62

Please sign in to comment.