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

spulec / moto / 7299
95%

Build:
DEFAULT BRANCH: master
Ran 08 Dec 2020 01:32PM UTC
Jobs 8
Files 422
Run time 80min
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
7299

push

travis-ci

web-flow
Pass the default ECS cluster and raise accurate exceptions (#3522)

* Pass the "default" cluster

* Mock ECS exceptions more accurately

Moto's mock ECS has drifted fairly far from the actual ECS API in terms
of which exceptions it throws. This change begins to bring mock ECS's
exceptions in line with actual ECS exceptions. Most notably:

- Several custom exceptions have been replaced with their real ECS
exception. For example, "{0} is not a cluster" has been replaced with
ClusterNotFoundException
- Tests have been added to verify (most of) these exceptions work
correctly. The test coverage was a little spotty to begin with.
- The new exceptions plus the change to pass the "default" cluster
exposed a lot of places where mock ECS was behaving incorrectly. For
example, the ListTasks action is always scoped to a single cluster in
ECS but it listed tasks for all clusters in the mock. I've minimally
updated the tests to make them pass, but there's lots of opportunity to
refactor both this method's test and its implementation.

This does not provide full coverage of exceptions. In general, I ran
these operations against actual ECS resources and cross-referenced the
documentation to figure out what actual exceptions should be thrown and
what the messages should be. Consequently, I didn't update any
exceptions that took more than trivial amount of time to reproduce with
real resources.

67 of 67 new or added lines in 3 files covered. (100.0%)

42884 of 45348 relevant lines covered (94.57%)

5.97 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
9
100.0
moto/ecs/models.py

Uncovered Existing Lines

Lines Coverage ∆ File
1
100.0
moto/ecs/responses.py
Jobs
ID Job ID Ran Files Coverage
1 7299.1 (TEST_SERVER_MODE=false) 08 Dec 2020 01:44PM UTC 0
94.34
Travis Job 7299.1
2 7299.2 (TEST_SERVER_MODE=true) 08 Dec 2020 01:59PM UTC 0
53.76
Travis Job 7299.2
3 7299.3 (TEST_SERVER_MODE=false) 08 Dec 2020 01:32PM UTC 0
94.32
Travis Job 7299.3
4 7299.4 (TEST_SERVER_MODE=true) 08 Dec 2020 01:45PM UTC 0
55.4
Travis Job 7299.4
5 7299.5 (TEST_SERVER_MODE=false) 08 Dec 2020 02:16PM UTC 0
94.3
Travis Job 7299.5
6 7299.6 (TEST_SERVER_MODE=true) 08 Dec 2020 02:39PM UTC 0
55.39
Travis Job 7299.6
7 7299.7 (TEST_SERVER_MODE=false) 08 Dec 2020 02:28PM UTC 0
94.4
Travis Job 7299.7
8 7299.8 (TEST_SERVER_MODE=true) 08 Dec 2020 02:51PM UTC 0
56.24
Travis Job 7299.8
Source Files on build 7299
  • Tree
  • List 422
  • Changed 164
  • Source Changed 3
  • Coverage Changed 164
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Travis Build #7299
  • b4e96114 on github
  • Prev Build on master (#7298)
  • Next Build on master (#7303)
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

© 2025 Coveralls, Inc