Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
test updated to old field
Browse files Browse the repository at this point in the history
  • Loading branch information
jeanluciano committed Apr 8, 2024
1 parent e0335aa commit 5c3c54b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion prefect_aws/workers/ecs_worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@
name: "{{ container_name }}"
cpu: "{{ cpu }}"
family: "{{ family }}"
memory: "{{ task_memory }}"
memory: "{{ memory }}"
executionRoleArn: "{{ execution_role_arn }}"
"""

Expand Down
8 changes: 5 additions & 3 deletions tests/workers/test_ecs_worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -535,7 +535,9 @@ async def test_launch_types(

@pytest.mark.usefixtures("ecs_mocks")
@pytest.mark.parametrize("launch_type", ["EC2", "FARGATE", "FARGATE_SPOT"])
@pytest.mark.parametrize("cpu,memory", [(2048, 4096)])
@pytest.mark.parametrize(
"cpu,memory", [(None, None), (1024, None), (None, 2048), (2048, 4096)]
)
@pytest.mark.parametrize("container_cpu,container_memory", [(1024, 2048)])
async def test_cpu_and_memory(
aws_credentials: AwsCredentials,
Expand All @@ -549,8 +551,8 @@ async def test_cpu_and_memory(
configuration = await construct_configuration(
aws_credentials=aws_credentials,
launch_type=launch_type,
task_cpu=cpu,
task_memory=memory,
cpu=cpu,
memory=memory,
container_cpu=container_cpu,
container_memory=container_memory,
)
Expand Down

0 comments on commit 5c3c54b

Please sign in to comment.