add tags support to ECS tasks (#3715)

* add tags support to ECS tasks

* lint

* lint

* fmt

* fmt with same version

Co-authored-by: ltagliamonte <ltagliamonte@users.noreply.github.com>
This commit is contained in:
Luigi Tagliamonte 2021-02-21 02:11:34 -08:00 committed by GitHub
commit 442fcd4e51
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 13 additions and 2 deletions

View file

@ -1457,6 +1457,10 @@ def test_run_task():
taskDefinition="test_ecs_task",
count=2,
startedBy="moto",
tags=[
{"key": "tagKey0", "value": "tagValue0"},
{"key": "tagKey1", "value": "tagValue1"},
],
)
len(response["tasks"]).should.equal(2)
response["tasks"][0]["taskArn"].should.contain(
@ -1476,6 +1480,7 @@ def test_run_task():
response["tasks"][0]["desiredStatus"].should.equal("RUNNING")
response["tasks"][0]["startedBy"].should.equal("moto")
response["tasks"][0]["stoppedReason"].should.equal("")
response["tasks"][0]["tags"][0].get("value").should.equal("tagValue0")
@mock_ec2