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

projectatomic / atomic-reactor / 5263
96%

Build:
DEFAULT BRANCH: master
Ran 01 Mar 2018 08:37PM UTC
Jobs 5
Files 74
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
5263

push

travis-ci

mlangsdorf
Improvements to get_manifest_digests utility function (OSBS-5099)

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>

7084 of 7443 relevant lines covered (95.18%)

4.62 hits per line

Jobs
ID Job ID Ran Files Coverage
1 5263.1 (OS=centos OS_VERSION=7 PYTHON_VERSION=2) 01 Mar 2018 08:37PM UTC 0
89.36
Travis Job 5263.1
2 5263.2 (OS=fedora OS_VERSION=26 PYTHON_VERSION=2) 01 Mar 2018 08:38PM UTC 0
94.65
Travis Job 5263.2
3 5263.3 (OS=fedora OS_VERSION=26 PYTHON_VERSION=3) 01 Mar 2018 08:38PM UTC 0
91.9
Travis Job 5263.3
4 5263.4 (OS=fedora OS_VERSION=27 PYTHON_VERSION=2) 01 Mar 2018 08:39PM UTC 0
94.65
Travis Job 5263.4
5 5263.5 (OS=fedora OS_VERSION=27 PYTHON_VERSION=3) 01 Mar 2018 08:40PM UTC 0
91.9
Travis Job 5263.5
Source Files on build 5263
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #5263
  • 00bcc818 on github
  • Prev Build on master (#5258)
  • Next Build on master (#5286)
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