Store 'networkMode' in ECS Task Definitions instead of just throwing it away

This commit is contained in:
Don Kuntz 2020-01-09 22:50:55 -06:00
commit 2cb3f327de
No known key found for this signature in database
GPG key ID: BC10CA5C55EEE343
3 changed files with 11 additions and 3 deletions

View file

@ -94,6 +94,7 @@ def test_register_task_definition():
"logConfiguration": {"logDriver": "json-file"},
}
],
networkMode='bridge',
tags=[
{"key": "createdBy", "value": "moto-unittest"},
{"key": "foo", "value": "bar"},
@ -124,6 +125,7 @@ def test_register_task_definition():
response["taskDefinition"]["containerDefinitions"][0]["logConfiguration"][
"logDriver"
].should.equal("json-file")
response['taskDefinition']['networkMode'].should.equal('bridge')
@mock_ecs