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

projectatomic / atomic-reactor / 5126 / 3
95%
master: 96%

Build:
Build:
LAST BUILD BRANCH: test_operator
DEFAULT BRANCH: master
Ran 15 Feb 2018 08:20PM UTC
Files 74
Run time 3s
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

15 Feb 2018 04:37PM UTC coverage: 91.646% (+0.002%) from 91.644%
OS=fedora OS_VERSION=26 PYTHON_VERSION=3

push

travis-ci

twaugh
Improvements to get_manifest_digests utility function

This function now gives more debugging output to aid diagnosis of a
situation in which only one of the two expected media types is seen on
the Pulp server.

As part of this, the function has been improved to aid readability.
There are now two more functions:
* `guess_manifest_media_type()` takes a bytes object and attempts to
decode it and interpret the JSON in order to decide which manifest media
type it is
* `manifest_is_media_type()` takes a requests.Response object and an
expected media type and attempts to confirm or deny that the manifest
returned in the response is of the expected media type

The media type guessing has also been improved. Previously in the
absence of a Content-Type HTTP response header, API v1 manifests could
not be identified at all (they lack a mediaType key). Now, if there is
no mediaType key the schemaVersion key will be inspected. This allows us
to reasonably guess at the manifest being API v1.

Signed-off-by: Tim Waugh <twaugh@redhat.com>

6670 of 7278 relevant lines covered (91.65%)

0.92 hits per line

Source Files on job 5126.3 (OS=fedora OS_VERSION=26 PYTHON_VERSION=3)
  • Tree
  • List 0
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 5126
  • Travis Job 5126.3
  • 9c0b4d46 on github
  • Prev Job for OS=fedora OS_VERSION=26 PYTHON_VERSION=3 on get-manifest-digests-improvements (#5118.3)
  • Next Job for OS=fedora OS_VERSION=26 PYTHON_VERSION=3 on get-manifest-digests-improvements (#5222.3)
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