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

PulpQE / pulp-smash / 238
63%

Build:
DEFAULT BRANCH: master
Ran 09 Feb 2016 10:29PM UTC
Jobs 4
Files 6
Run time 11min
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
238

push

travis-ci

Ichimonji10
Conditionally execute OSTree tests

Remove the unconditional `skipTest` exception raised by function `setUpModule`
in module `pulp_smash.tests.ostree.api_v2.test_sync_publish`.

Add a `load_tests` function [1] to package `pulp_smash.tests.ostree`. This
function talks to the Pulp server under test, asks it for a list of content unit
types, and uses that information in choosing whether to run the OSTree tests.

This works because each plugin adds one (or more?) content unit type to Pulp.
The types added by a given plugin are listed in the documentation for those
plugins. For example, see:

* http://pulp-ostree.readthedocs.org/en/latest/tech-reference/type.html
* http://pulp-python.readthedocs.org/en/latest/reference/python-type.html

Due to Pulp issue 1642 [2], this only works well on Pulp 2.7. On Pulp 2.8, the
OSTree plugin does not appear to be installed (even if present), so these tests
are skipped.

Before this commit, all OSTree tests are skipped. Test results after this
commit:

    =========  ==========  ==================
    Pulp Ver.  Num. Tests  Test Suite Results
    =========  ==========  ==================
    2.7        18          OK
    dev (2.8)  0           OK
    =========  ==========  ==================

Test results after this commit against systems without the OSTree plugin
installed:

    =========  ==========  ==================
    Pulp Ver.  Num. Tests  Test Suite Results
    =========  ==========  ==================
    2.7        0           OK
    dev (2.8)  0           OK
    =========  ==========  ==================

[1] https://docs.python.org/3.5/library/unittest.html#load-tests-protocol
[2] https://pulp.plan.io/issues/1642

Related to #84

271 of 357 relevant lines covered (75.91%)

3.04 hits per line

Jobs
ID Job ID Ran Files Coverage
1 238.1 09 Feb 2016 10:29PM UTC 0
75.91
Travis Job 238.1
2 238.2 09 Feb 2016 10:30PM UTC 0
75.91
Travis Job 238.2
3 238.3 09 Feb 2016 10:30PM UTC 0
75.91
Travis Job 238.3
4 238.4 09 Feb 2016 10:30PM UTC 0
75.91
Travis Job 238.4
Source Files on build 238
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #238
  • 0df19f3b on github
  • Prev Build on master (#236)
  • Next Build on master (#240)
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