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

ktdreyer / errata-tool-ansible / 620
75%
master: 75%

Build:
Build:
LAST BUILD BRANCH: guard-tps-docker
DEFAULT BRANCH: master
Ran 01 Oct 2020 10:07PM UTC
Jobs 1
Files 8
Run time 2s
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
620

push

travis-ci-com

ktdreyer
cdn_repo: report entire JSON response on edit errors

Sometimes this API endpoint returns an "errors" key instead of
an "error" key. This leads to KeyErrors. (For example, I hit this when I
tried to add a second variant to a CDN repo that already had a variant
from that same Product Version).

Since we don't have a robust error-handling method, in order to keep
this code simple, just raise the entire JSON response, since it's
usually pretty small.

The exact error strings are different on py2 (with u'') vs py3. Update
the assertions in the unit tests to simply check for the important
substrings.

Add a new unit test to verify that we report "errors".

707 of 938 relevant lines covered (75.37%)

0.75 hits per line

Jobs
ID Job ID Ran Files Coverage
3 620.3 01 Oct 2020 10:07PM UTC 0
75.37
Travis Job 620.3
Source Files on build 620
  • Tree
  • List 8
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Build #620
  • 355ae4fb on github
  • Prev Build on cdn-repo-edit-errors (#618)
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