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

PulpQE / pulp-smash / 201 / 3
63%
master: 63%

Build:
DEFAULT BRANCH: master
Ran 27 Jan 2016 07:13PM UTC
Files 6
Run time 0s
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

27 Jan 2016 07:13PM UTC coverage: 75.429%. Remained the same
201.3

push

travis-ci

Ichimonji10
Improve CLI transport detection logic

The CLI client, `pulp_smash.cli.Client`, can execute commands either locally or
remotely over SSH. A user can explicitly choose which transport to use by
setting the `cli_transport` setting on a server config object:

    >>> from pulp_smash import cli, config
    >>> cfg = ServerConfig('pulp.example.com', cli_transport='local')
    >>> client = cli.Client(cfg)

Alternately, a user may omit the `cli_transport` option and let Pulp Smash guess
what to do. Pulp Smash will choose to execute commands locally if the hostname
of the current system (the one running Pulp Smash) matches the hostname given to
the server config object. Pulp Smash will choose to execute commands over SSH
otherwise.

Pulp Smash currently fetches the hostname of the current system using the
`socket.gethostname()` function. This isn't an ideal choice: it sometimes
returns an abbreviated hostname, instead of a fully-qualified domain name. Fix
this. Make Pulp Smash use the `socket.getfqdn()` function, which more
aggressively attempts to return a fully qualified domain name.

Test suite results do not change as a result of this commit.

264 of 350 relevant lines covered (75.43%)

0.75 hits per line

Source Files on job 201.3
  • Tree
  • List 0
  • Changed 1
  • Source Changed 1
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 201
  • Travis Job 201.3
  • 239e6580 on github
  • Prev Job for on master (#200.3)
  • Next Job for on master (#202.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