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

PulpQE / pulp-smash / 238 / 2
63%
master: 63%

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

09 Feb 2016 08:27PM UTC coverage: 75.91%. Remained the same
238.2

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%)

0.76 hits per line

Source Files on job 238.2
  • Tree
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 238
  • Travis Job 238.2
  • 0df19f3b on github
  • Prev Job for on master (#236.2)
  • Next Job for on master (#240.1)
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