Merge pull request #3147 from bblommers/enhancement/3139

ECS - UpdateService - Allow service ARN to be passed in
This commit is contained in:
Steve Pulec 2020-07-26 15:31:12 -05:00 committed by GitHub
commit 41427a78b6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 1 deletions

View file

@ -660,6 +660,15 @@ def test_update_service():
response["service"]["desiredCount"].should.equal(0)
response["service"]["schedulingStrategy"].should.equal("REPLICA")
# Verify we can pass the ARNs of the cluster and service
response = client.update_service(
cluster=response["service"]["clusterArn"],
service=response["service"]["serviceArn"],
taskDefinition="test_ecs_task",
desiredCount=1,
)
response["service"]["desiredCount"].should.equal(1)
@mock_ecs
def test_update_missing_service():