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

ktdreyer / errata-tool-ansible / 266 / 4
75%
master: 75%

Build:
DEFAULT BRANCH: master
Ran 14 Jul 2020 08:35PM UTC
Files 7
Run time 1min
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

14 Jul 2020 08:33PM UTC coverage: 51.508%. Remained the same
266.4

push

travis-ci-com

mergify[bot]
errata_tool_cdn_repo: handle reading pkgs with no tags

If a package in a repository has zero tags, get_package_tags() will not
return any key for that package name at all. The reason is that the
/api/v1/cdn_repo_package_tags API endpoint does not return any entries
for packages with zero tags.

Prior to this change, the ensure_packages_tags() method could raise a
KeyError when we try to compare the current_tags for a package with the
desired_tags, because current_tags has no key for this package_name.

Update ensure_package_tags() to handle the missing package_name keys in
the current_tags data we obtain from get_package_tags().

Update the code comments to reflect the ET's behavior here, and add a
unit test that verifies the ability to add a tag to a package that
starts with zero tags.

461 of 895 relevant lines covered (51.51%)

0.52 hits per line

Source Files on job 266.4
  • Tree
  • List 0
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 219
  • Travis Job 266.4
  • 50e69b1a on github
  • Prev Job for on master (#263.4)
  • Next Job for on master (#270.4)
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