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

PulpQE / pulp-smash / 2592
63%

Build:
DEFAULT BRANCH: master
Ran 04 Jun 2018 08:25PM UTC
Jobs 3
Files 15
Run time 4min
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
2592

push

travis-ci

Ichimonji10
Simplify api.Client hostname warning

An `api.Client` object should only be used to communicate with one host.
Its value proposition is that it trades off some flexibility for
convenience: when repeatedly communicating with a single host, certain
options and behaviours can be repeatedly sent with little effort.

If an `api.Client` object is used to communicate with some other host, a
warning is raised. Unfortunately, the logic used to generate this
warning is baroque. It goes like this:

1. Take `self.pulp_host`, a `PulpHost` object, and build a base URL by
   passing it to a URL building method on `self._cfg`, a
   `PulpSmashConfig` object.
2. Parse this URL, and extract the hostname.
3. Compare the extracted hostname to the hostname of the host a request
   is being made to.

This logic is correct, but it's unnecessarily convoluted. Simplify it.
Do the following instead: Compare the hostname of `self.pulp_host`
against the hostname of the host a request is being made to.

699 of 1090 relevant lines covered (64.13%)

1.92 hits per line

Jobs
ID Job ID Ran Files Coverage
1 2592.1 04 Jun 2018 08:27PM UTC 0
64.13
Travis Job 2592.1
2 2592.2 04 Jun 2018 08:25PM UTC 0
64.13
Travis Job 2592.2
3 2592.3 04 Jun 2018 08:26PM UTC 0
64.13
Travis Job 2592.3
Source Files on build 2592
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #2592
  • 6640a6f5 on github
  • Prev Build on master (#2588)
  • Next Build on master (#2593)
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