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

PulpQE / pulp-smash / 179
63%

Build:
DEFAULT BRANCH: master
Ran 15 Jan 2016 04:02PM UTC
Jobs 4
Files 5
Run time 6s
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
179

push

travis-ci

Ichimonji10
Add a CLI helper

Add, document and test module `pulp_smash.cli`. This module provides "tools for
working with Pulp's CLI." This fixes #32:

> It'd be nice if we could inspect the state of remote systems under test. For
> example, it may be useful to log in to a remote system and determine whether
> certain files are lying around in certain places in the file system.

Here's a simple example of how to use the new module:

    >>> from pulp_smash import cli, config
    >>> server_config = config.ServerConfig('localhost')
    >>> client = cli.Client(server_config)
    >>> response = client.run(('echo', '-n', 'foo'))
    >>> response.returncode == 0
    True
    >>> response.stdout == 'foo'
    True
    >>> response.stderr == ''
    True

The `Client` class is flexible enough that both request and response handling
can be customized on a per-instance basis. See the docstrings in module
`pulp_smash.cli` for details.

Add "plumbum" as a dependency. It is used by the CLI helper.

Many thanks to @elyezer for help in brainstorming a solution to this issue.

This commit does not affect test results (107 tests):

    ============  =============================
    Pulp Version  Test Suite Results
    ============  =============================
    2.7           OK
    dev (2.8)     FAILED (errors=2, skipped=13)
    ============  =============================

254 of 318 relevant lines covered (79.87%)

3.14 hits per line

Jobs
ID Job ID Ran Files Coverage
1 179.1 15 Jan 2016 04:02PM UTC 0
79.87
Travis Job 179.1
2 179.2 15 Jan 2016 04:02PM UTC 0
77.99
Travis Job 179.2
3 179.3 15 Jan 2016 04:02PM UTC 0
77.99
Travis Job 179.3
4 179.4 15 Jan 2016 04:02PM UTC 0
77.99
Travis Job 179.4
Source Files on build 179
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #179
  • 7a5c3423 on github
  • Prev Build on master (#172)
  • Next Build on master (#180)
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