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

PulpQE / pulp-smash / 590 / 4
63%
master: 63%

Build:
DEFAULT BRANCH: master
Ran 19 May 2016 12:42AM 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

18 May 2016 08:42PM UTC coverage: 70.276%. Remained the same
590.4

push

travis-ci

Ichimonji10
Fix RPM repo export tests

The `ExportDistributorTestCase` in module
`pulp_smash.tests.rpm.api_v2.test_export` has three methods:
`setUpClass`, `test_publish_to_web`, and `test_publish_to_dir`. The
first creates and syncs a repository, then adds an export distributor to
the repository. The second and third methods each publish the repository
and verify that the published files can be fetched.

As described by Pulp issue 1928, [1] export distributors cannot be
re-used in this manner. Pulp will silently fail to complete the second
publish. You can prove this to yourself by running the tests with this
command:

    python -m unittest2 pulp_smash.tests.rpm.api_v2.test_export.ExportDistributorTestCase.test_publish_to_dir
    python -m unittest2 pulp_smash.tests.rpm.api_v2.test_export.ExportDistributorTestCase.test_publish_to_web

The tests will pass, as a separate export distributor is created for
each publication. Fix the test case by conditionally creating a new
export distributor for each test method. This change has successfully
been tested against Pulp 2.8.3 on Fedora 23 and Pulp master (2.9.0) on
Fedora 22, with the following command:

    python -m unittest2 pulp_smash.tests.rpm.api_v2.test_export

[1] https://pulp.plan.io/issues/1928

357 of 508 relevant lines covered (70.28%)

0.7 hits per line

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