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

PulpQE / pulp-smash / 590
63%

Build:
DEFAULT BRANCH: master
Ran 19 May 2016 12:41AM UTC
Jobs 4
Files 6
Run time 48s
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
590

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

2.81 hits per line

Jobs
ID Job ID Ran Files Coverage
1 590.1 19 May 2016 12:41AM UTC 0
70.28
Travis Job 590.1
2 590.2 19 May 2016 12:42AM UTC 0
70.28
Travis Job 590.2
3 590.3 19 May 2016 12:42AM UTC 0
70.28
Travis Job 590.3
4 590.4 19 May 2016 12:42AM UTC 0
70.28
Travis Job 590.4
Source Files on build 590
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #590
  • f06d5fcd on github
  • Prev Build on master (#589)
  • Next Build on master (#612)
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