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

PulpQE / pulp-smash / 1637 / 3
63%
master: 63%

Build:
DEFAULT BRANCH: master
Ran 29 Jun 2017 03:19PM UTC
Files 7
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

27 Jun 2017 04:31AM UTC coverage: 62.069%. Remained the same
1637.3

push

travis-ci

Ichimonji10
Tweak with assertions in rsync test case

When executed, `PublishTwiceTestCase` will:

    1. Create a yum repository with a yum and rsync distributor.
    2. Add some content to the repository.
    3. Publish with the yum and rsync distributor.
    4. Publish with the yum and rsync distributor again.

    The second publish with the rsync distributor should be a fast-forward
    publish, as no new units were added to the repository between the first and
    second publishes.

Update the test case. In step 2, upload two RPMs, not one. In step 3,
assert that the "unit query step" processes exactly two RPMs, instead of
some vague number greater than zero. In step 4, continue to assert that
the "unit query step" processes exactly zero RPMs.

The rsync distributor uses iterators for much of its functionality,
meaning that several steps will always state that one item was
processed. In contrast, the "unit query step" doesn't use iterators,
which is why we can make assertions about the number of RPMs processed.
Uploading two RPMs instead of one makes it easier to parse the meaning
of test results in the future:

* If zero RPMs are processed, then this indicates that a fast-forward
  publish occurred.
* If two RPMs was processed, then this indicates that a full publish
  occurred.
* If one RPM was processed, then this might indicate that an iterator is
  being used for publishes, in which case the test needs to be
  redesigned.

See: https://pulp.plan.io/issues/2844

522 of 841 relevant lines covered (62.07%)

0.62 hits per line

Source Files on job 1637.3
  • Tree
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 1637
  • Travis Job 1637.3
  • 06ae2099 on github
  • Prev Job for on master (#1641.3)
  • Next Job for on master (#1639.2)
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