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

ktdreyer / errata-tool-ansible / 266
75%

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

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

Jobs
ID Job ID Ran Files Coverage
4 266.4 14 Jul 2020 08:35PM UTC 0
51.51
Travis Job 266.4
Source Files on build 266
Detailed source file information is not available for this build.
  • Back to Repo
  • Build #266
  • 50e69b1a on github
  • Prev Build on master (#263)
  • Next Build on master (#270)
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