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

PulpQE / pulp-smash / 201
63%

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

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.

270 of 350 relevant lines covered (77.14%)

3.03 hits per line

Jobs
ID Job ID Ran Files Coverage
1 201.1 27 Jan 2016 07:13PM UTC 0
77.14
Travis Job 201.1
2 201.2 27 Jan 2016 07:13PM UTC 0
75.43
Travis Job 201.2
3 201.3 27 Jan 2016 07:13PM UTC 0
75.43
Travis Job 201.3
4 201.4 27 Jan 2016 07:13PM UTC 0
75.43
Travis Job 201.4
Source Files on build 201
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #201
  • 239e6580 on github
  • Prev Build on master (#200)
  • Next Build on master (#202)
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

© 2025 Coveralls, Inc