• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

spulec / moto / 7388
95%

Build:
DEFAULT BRANCH: master
Ran 09 Jan 2021 02:21PM UTC
Jobs 8
Files 422
Run time 43min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
7388

push

travis-ci

web-flow
More accurately mock ECS RegisterTaskDefinition (#3584)

The mocked response for ECS RegisterTaskDefinition has drifted from what
actually returns when run against a real ECS endpoint. I created a
minimal task definition for both EC2:

```
>>> ecs.register_task_definition(
      family="moto",
      containerDefinitions=[
          {
              "name": "hello_world",
              "image": "hello-world:latest",
              "memory": 400
           }
       ]
  )["taskDefinition"]

{'taskDefinitionArn': 'arn:aws:ecs:us-east-1:************:task-definition/moto:1',
 'containerDefinitions': [{'name': 'hello_world',
   'image': 'hello-world:latest',
   'cpu': 0,
   'memory': 400,
   'portMappings': [],
   'essential': True,
   'environment': [],
   'mountPoints': [],
   'volumesFrom': []}],
 'family': 'moto',
 'revision': 1,
 'volumes': [],
 'status': 'ACTIVE',
 'placementConstraints': [],
 'compatibilities': ['EC2']}
```

and FARGATE:
```
>>> ecs.register_task_definition(
      family="moto",
      containerDefinitions=[
          {
              "name": "hello_world",
              "image": "hello-world:latest",
              "memory": 400
           }
       ],
       requiresCompatibilities=["FARGATE"],
       networkMode="awsvpc",
       cpu="256",
       memory="512"
  )["taskDefinition"]

{'taskDefinitionArn': 'arn:aws:ecs:us-east-1:************:task-definition/moto:2',
 'containerDefinitions': [{'name': 'hello_world',
   'image': 'hello-world:latest',
   'cpu': 0,
   'memory': 400,
   'portMappings': [],
   'essential': True,
   'environment': [],
   'mountPoints': [],
   'volumesFrom': []}],
 'family': 'moto',
 'networkMode': 'awsvpc',
 'revision': 2,
 'volumes': [],
 'status': 'ACTIVE',
 'requiresAttributes': [{'name': 'com.amazonaws.ecs.capability.docker-remote-api.1.18'},
  {'name': 'ecs.capability.task-eni'}],
 'placementConstraints': [],
 'compatibilities': ['EC2', 'FAR... (continued)

24 of 24 new or added lines in 2 files covered. (100.0%)

42973 of 45441 relevant lines covered (94.57%)

5.97 hits per line

Jobs
ID Job ID Ran Files Coverage
1 7388.1 (TEST_SERVER_MODE=false) 09 Jan 2021 02:35PM UTC 0
94.36
Travis Job 7388.1
2 7388.2 (TEST_SERVER_MODE=true) 09 Jan 2021 02:47PM UTC 0
53.68
Travis Job 7388.2
3 7388.3 (TEST_SERVER_MODE=false) 09 Jan 2021 02:21PM UTC 0
94.3
Travis Job 7388.3
4 7388.4 (TEST_SERVER_MODE=true) 09 Jan 2021 02:30PM UTC 0
55.31
Travis Job 7388.4
5 7388.5 (TEST_SERVER_MODE=false) 09 Jan 2021 02:39PM UTC 0
94.32
Travis Job 7388.5
6 7388.6 (TEST_SERVER_MODE=true) 09 Jan 2021 02:57PM UTC 0
55.3
Travis Job 7388.6
7 7388.7 (TEST_SERVER_MODE=false) 09 Jan 2021 02:50PM UTC 0
94.43
Travis Job 7388.7
8 7388.8 (TEST_SERVER_MODE=true) 09 Jan 2021 03:04PM UTC 0
56.16
Travis Job 7388.8
Source Files on build 7388
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #7388
  • 6dfd64ff on github
  • Prev Build on master (#7387)
  • Next Build on master (#7393)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc